0

So my current charge is:

148 reads
13 writes
12 deletes

My question is, how is the read counted.

In my code I only got this function

  databaseReference
        .collection("test")
        .document(firebaseUser.uid)
        .setData({'title': '$name', 'desc': '$description'});

So basically I tested the function a couple of times and I am wondering why I got that high reads without ever querying the result.

The deletes come from me manually deleting these Sets on the Firebase Website.

0x45
  • 779
  • 3
  • 7
  • 26
  • 1
    If you have the Firebase console open showing your Firestore documents, those count as charged reads for your project. This is usually where a majority of the reads come from early in the development cycle. Also see https://stackoverflow.com/questions/62229630/why-1-document-write-in-firestore-costs-30-reads/62231297#62231297 – Frank van Puffelen Jun 11 '20 at 12:56
  • Oh I didn’t see any official statement... – 0x45 Jun 11 '20 at 13:02
  • I'm not sure what you mean by that. Can you clarify? – Frank van Puffelen Jun 11 '20 at 13:58

0 Answers0