Firebase as simple way to store and query a 20mb json file

104 views
Skip to first unread message

tom b

unread,
Aug 20, 2017, 12:08:12 PM8/20/17
to Firebase Google Group
Hi, very new to Firebase! A couple of questions before I delve into the system further, if anyone has time to look...

Listed in order of importance (I think!)

I have a 20mb JSON file that I'd like to query for search strings and pull out relevant data (I'd like to populate a form with data from a JSON object based on a key/value from that object) - would it make sense/be possible to simply upload this file to a Firebase database, and perform actions like this?

I wouldn't need authentication and I would like it to be read-only to all users (changes to the JSON file would need to be made by uploading a fresh file and writing over all the data), I know I can set this in the database rules - but can I limit to requests sent from a specific domain?

I assume this would generally be a lot swifter for the user than making the file available directly on my site and parsing with javascript?!

Can I force this data to be on EU servers? I won't need analytics or anything else really.

Looking at the pricing I'm pretty confident this would be able to run on the free plan, assuming I only have a couple of hundred queries a month; is there anything I'm missing in this regard?

Sorry, all a little rambly and generally uninformed! Thanks for looking.

Tom

Doug Stevenson

unread,
Aug 20, 2017, 11:43:43 PM8/20/17
to Firebase Google Group
Tom,

Currently, there is no way to specify the locality of the data in Realtime Database.

You might want to have a look at the kinds of queries you can do.  There's no text searching - not sure if that's the kind of querying you're looking for.  For sophisticated filtering/searching, you'd have to pull down all the data on the client and work with it locally.

Doug
Reply all
Reply to author
Forward
0 new messages