Ertugrul
Ertugrul

Reputation: 143

Firestore Document Size Limitations

I've Google Cloud Firestore Project. My database model is like this:

enter image description here

Each store has own document. Sales and inventory collections has a lot of documents and their size increases every day.

There is document max size limitation for documents in Firestore. So, Document that named Store1 has sales and inventory collections and they store every sale and item. Does Store1 document have max size limitation? Would sales and inventory documents size increasing be a problem? If it would be, my data model should be incorrect and if it's incorrect, how should it be?

Upvotes: 1

Views: 84

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 598708

The document size limitation in Firestore is enforced per individual document, and does not include the size of the documents in subcollections of that document. It is relatively uncommon for folks to hit the document size limit.

Upvotes: 1

Related Questions