Reputation: 512
Please someone help me to know how does the firebase firestore read counted. I noticed that whenever i view my data in firebase console that too taken as in "read" so my doubt is whether i would be charged when my client view the fetched data in the app too! initially i thought that i would be charged only for the "read" done by the user in my app. I know that 1 document is equal to one read, but i never knew that read is also counted when we actually see the data in the firebase console. so please help me to know the right way to use it, this is creating a headache for me. and thanks in advance
Upvotes: 2
Views: 1475
Reputation: 2543
You're charged for reads in the console too. Generally, this number is low during the development phase and should easily be covered by the free trial.
If your documents are excessive, you may prefer building a separate admin dashboard for him/her. Using
If you are charged heavily just for opening the firestore console, you may consider creating a blank collection with the name a
- so that whenever you load firestore console, only documents in the a
collection are loaded.
Upvotes: 4
Reputation: 83058
One Firestore document read is counted (and charged if you have reached the free quota limit of 50K/day for reads) in both cases: the document is read from the Firebase Console or the document is read from your app.
help me to know the right way to use it
There is no real "right way". You are charged one document read each time you read a Firestore doc (whatever is the way of reading it) and you have reached the free quota limit (i.e. 50K/day for reads)
You will find more details in the dedicated Firestore doc.
Upvotes: 2