data structures - How to insert 100 million entries in FireBase databas without painting myself into a corner -


i learning , trying understand how optimizing firebase databas use case.

looking @ code below: lets us/street_address pushed 150 million entries(the number of street addresses in us), , want sort on "path": key, since unique identifier addresses. performance here when comes responce time? if setup regarding question not advicable how can change us/street_address?

reading fan-out dont think need because of no multichat or other multi anything. in case want create databas holdes intere worlds street addresses, whatever reason :).

should denormalize us/street_address more, splitting 10 million entries us/a/street_address, us/b/street_address , us/c/street_address. can done since "path": "us/california/orange county/3138 e maple ave" in sample code below unique, , used key instead of firebase postsref.push() auto key, code sample use. still there 100 millions

{   "ae": {     "name": "united arab emirates"   },   "gb": {     "name": "united kingdom"   },   "us": {     "name": "united states",     "street_address": {       "-kuxrqylitjme2v1i_w5": {         "id": "hjg86-tg33-8hu4-yh5u",         "path": "us/california/orange county/3138 e maple ave"       },       "-kujhjj7hg5gghnnj_t5": {         "id": "ds86-tg12-7eu4-juw3",         "path": "us/florida/tampa/104 biscayne ave"       }     }   },   "ch": {     "name": "switzerland"   },   "sy": {     "name": "syrian arab republic"   },   "tw": {     "name": "taiwan"   },   "tj": {     "name": "tajikistan"   },   "tz": {     "name": "tanzania, united republic of"   },   "th": {     "name": "thailand"   } } 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -