Search code examples
google-cloud-firestorefirebase-console

Read documents from Google Firestore console Fee issue


I'm studying Firestore. is in use. Is it right that I am charged when I read the document from the console? The problem is that when you read documents from the console, do you charge for reading all the documents in the subcollection.. For example.

Let's say there's a sub-collection in a document and there's 100,000 documents in that sub-collection.

Then, do I have to charge 100,000 reading fees if I read only that one document on console?


Solution

  • Is it right that I am charged when I read the document from the console?

    Yes, you have to pay for each document you read in the Firebase Console. The Console is considered a client as any other web, iOS, or Android client.

    The problem is that when you read documents from the console, do you charge for reading all the documents in the subcollection?

    No, you have to pay only for the first 30. I'm not sure about the number, it may be 40 or even 50 but for sure not the entire sub-collection. That's because there is a pagination mechanism implemented, so you can load the documents progressively. So each time you scroll you get another 30 documents until you read the last one.