3

I've seen this post which explains there is no limit to the documents in a collection (which I understood was the case for scalability), however, is there a documented limit on collections?

My app will be multi-tenant with collections like tenandId_collectionName so I don't want to hit a limit as users grow.

webnoob
  • 15,747
  • 13
  • 83
  • 165

1 Answers1

6

The Firebase Limits does not state any limits on collections, but there is a limit on the depth of sub-collections. The limit is that you can only go 100 subcollections deep, which is very large and you should never reach that point unless you have the most detailed and specific app in the world.

So to summarize, there are no limits on how many collections you have, just how deep you can go within a collection.

Hope this helps!

Appafly
  • 656
  • 2
  • 6
  • 24
  • I'm not planning on nesting too much because it hinders indexing, searching etc so that's all good. Thanks. – webnoob Mar 06 '19 at 08:14