1
votes

When querying a deeply nested sub-collection, do you get charged for reading the documents at the top of the hierarchy or do you just get charged for the documents that belong to the sub-collection that is being read.

1
You may have a look at this answer: stackoverflow.com/a/55590692/3371862. Docs of the top hierarchy have actually nothing to do with the ones of the sub-collection, they just share a part of their paths. - Renaud Tarnec

1 Answers

2
votes

You get charged for the documents that the server needs to read for you. If you only read documents from the subcollection, you will only get charged for those. There is no implicit read-from-top-level-collecton required for reading from a subcollection.