Firebase client usage statistics

116 views
Skip to first unread message

Lahiru Chandima

unread,
Feb 3, 2020, 11:04:38 PM2/3/20
to Firebase Google Group
Hi,

I have an android app and a webapp using Firestore. The firestore read count is strangely high in my application, which I cannot explain by looking at how my app is supposed to behave.

I tried to find a way to profile firestore, so I can get an idea on which collection is used the most, or which client is reading the data the most, but couldn't find any way to profile the db.

Then I added a log entry to webapp and android app in each place a read operation is done, which reports the read count to a server. But, it only reports a very low number of reads, compared to the read count I see in usage stats in firebase console. So I am guessing there are some read operations I have missed to log.

It would be better if I could get the the read count directly from the firestore client library, so I don't miss to log any reads.

Is there any way I can get the usage statistics from android and javascript client libraries? Or can anyone suggest a better way to locate the issue?

Thanks

Philip Ashworth

unread,
Feb 4, 2020, 11:03:22 AM2/4/20
to Firebase Google Group
Hi, You do not say how much higher, but have you allowed for rules checks being counted as reads? 

I must admit I would also love to be able to see an accurate count of updates, reads, rules reads and adds by collection at a minimum, in real time to profile apps.

It would help work out over enthusiastic coding where loops are not noticed, etc.   

Dan I

unread,
Feb 4, 2020, 11:04:43 AM2/4/20
to fireba...@googlegroups.com
I am looking for the same. A profile/report of reads by collections would provide great insight.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/23ebdd91-aa1c-409a-b0e0-a9362404b5a1%40googlegroups.com.

John Rodkey

unread,
Feb 4, 2020, 1:53:58 PM2/4/20
to fireba...@googlegroups.com
I wanted to put this out there, but you’re charged for the reads done through the web ui console of firebase too.  Please take this into consideration when looking at usage 



Lahiru Chandima

unread,
Feb 5, 2020, 10:16:59 AM2/5/20
to Firebase Google Group
Hi,

My rules don't read firestore. Rules depend only on the details embedded in authentication token to provide access to collections. Thanks anyway for the suggestion.
Reply all
Reply to author
Forward
0 new messages