Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloud Firestore document read cost for subcollections?

How to calculate firestore cost? I know that it count every operation, but if I read one document that contain sub collection how it count?

For example, If I read "A Document" that has 1 "Sub-Collection B" and "Sub-Collection B" have 5 document. Then how much it could if I only read "A Document", it will count 1 or 5 operation?

like image 429
Hello World Avatar asked May 23 '26 16:05

Hello World


1 Answers

The location of a document has no bearing on the billing for its reads. It could be in a collection, or a subcollection, or a subcollection of a subcollection - it just doesn't matter. One document read always costs the same.

like image 136
Doug Stevenson Avatar answered May 25 '26 09:05

Doug Stevenson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!