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