Link to home
Start Free TrialLog in
Avatar of Soli .
Soli .

asked on

Firestore 1M Data size limit

We are developing a new feature for our web app, and planning to use Firestore for storing documents. These documents are JSON payload that contains purchase order details. Since  our web app is hosted on GCP, Firestore is a default choice. 


I came to knw about the 1M limitation of document size in Firestore collection. Some of our purchase order contains multiple products and details and document size can go up to 3-4 MB that is more than acceptable size on Firestore. I did some research and came to know that we can break the Purchase Order payload in smaller size documents and store it in different collections.. like 

Purchase_Order_metadata - For storing PO metadata

Purchase_Order_Products - For storing Product associated with PO 

Purchase_Order_Billing - For storing Payment details associated with PO

etc..


Above approach will require 4-6 Collections to store a Purchase Order ..that appears to be complicated to me. 


My question is - How do we overcome this 1M limitation of Firestore for documents that is larger than 1M?

 

ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Soli .
Soli .

ASKER

This is very helpful. Agree with your views on storing data items in multiple collections. The use case I'm handling  has file size in terms of 20M, so thinking about the alternate option of Cloud storage or Big table with a reference in Firestore.