0

If I have a collection with 1000 documents and I want to query the document inside that collection that has the field, 'name' set to 'user01'. Does that finding count as 1000 reads ? If so is there a more cost effective way to do this.

user11877521
  • 319
  • 2
  • 11

1 Answers1

1

You are charged for the number of documents returned by your query. If you query documents where("name", "==", "user01)" and there are 45 documents out of those 1000 documents that match this, then you'll be charged 45 reads.

Dharmaraj
  • 47,845
  • 8
  • 52
  • 84