Hello World
Hello World

Reputation: 740

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?

Upvotes: 3

Views: 1356

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317948

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.

Upvotes: 8

Related Questions