Get a collection of N documents cost with Firebase

Viewed 67

Get 5 documents from users/ or from users/friends/Mike/sister/Jessica/rabbit... is the same amount of reads on the DB? I mean, since I need to access to more locations will this increment the amount of reads or it depends only from how many documents I get from the collection?

1 Answers

You are charged only for documents that are returned to the client as a result of query, not for all the documents in the collection. If you want to limit your costs, you should also place a limit on the number of documents that the query can receive.

Related