Reputation: 288
In Cloud Firestore, I have 1 collection, in that i have 100 documents and in each document i have 10 fields. How many reads it counts for pricing in cloud firestore?
+Add collection(1) +Add document(1...100) + Add field(1,2...10)(1,2...10)....
I searched for this question but i didn't understand clearly. I am new to database.Please help me. I am using firestore database in flutter app. Thanks.
Upvotes: 3
Views: 1538
Reputation: 138824
Does one document or one field is charged as one read in cloud Firestore?
Yes, it does.
In Cloud Firestore, I have 1 collection, in which I have 100 documents and in each document, I have 10 fields. How many reads does it count for pricing in Firestore?
If you update all 100 documents in a single go, it will cost you 100 write operations, no matter how many fields you update within each document.
If you update a field in a document and after some time you update it again, you'll be charged with two write operations.
Upvotes: 4