Re: [Firebase] Maximum value size?

3,916 views
Skip to first unread message

Michael Lehenbauer

unread,
Jun 7, 2013, 1:29:11 PM6/7/13
to fireba...@googlegroups.com
Hey Daniel,

We document it, but it's hidden in deep in a FAQ question. :-)

How much data can I store in Firebase?

As much as you want! Firebase is a scalable, elastic data store. It will automatically grow with your needs.

To ensure reasonable performance for applications using Firebase, we do impose a 10mb limit per single string stored in Firebase (calculated based on the utf-8 encoding of the string). To store larger data, simply break it into chunks and store it across multiple Firebase locations (e.g. /big_file/0, /big_file/1, etc.).

That said, I was confused by the fact that you're hitting a limit at 3.5M characters, and sure enough, there's a bug in our calculation logic.  I've fixed it, but it probably won't be deployed until next week sometime.  If this is blocking you, let me know!

In the meantime, I've opened a case for us to improve the documentation of this (and other limits).

Thanks!
-Michael



On Fri, Jun 7, 2013 at 4:42 AM, Daniel <cs2...@gmail.com> wrote:
Hi,

I noticed if you try to set a value to a really long string it causes an error.

I found it in the https://github.com/firebase/firepano/ example when attempting to upload a 3.5mb photo.

I did some probing to try and work out the limit and when the value is a string, the maximum length is around 3500000 characters.

I don't see having a limit as a problem what-so-ever, but is there anywhere where these limits are document? Or even better, could the max key/value size/length details could be made available through .info so we could write code that is future proof in case the max length goes up (or down) in the future.


Thanks,

Daniel

PS fantastic product by the way, loving using it for quick internal tools as well as the bigger product I'm currently working on.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Daniel

unread,
Jun 7, 2013, 5:21:00 PM6/7/13
to fireba...@googlegroups.com
Hi Michael,

Cheers for clearing that up.

It's not blocking me and actually when the app goes live the images will all be scaled to less than 200k. I was just stumped by it for a while when code I had working on my desktop wasn't working on my laptop.... turned out the most convenient photo I had lying around on the laptop was just much bigger :) 

Thanks,

Daniel
Reply all
Reply to author
Forward
0 new messages