zino
zino

Reputation: 1472

Firestore maximum nested depth

What is the maximum nest depth in Google Firebase's new Firestore?

The real time database's limit is 32: https://firebase.google.com/docs/database/web/structure-data#avoid_nesting_data

If you need more depth, is it better to just flatten the key paths into a string, as some NoSQL databases do (E.g Elastic search)?

Upvotes: 1

Views: 2162

Answers (1)

Hareesh
Hareesh

Reputation: 6900

Maximum depth of subcollections is 100.

And Maximum size for a document is 1 MiB (1,048,576 bytes)

You can find all limits and quotas here

Upvotes: 5

Related Questions