Firebase Firestore: How to monitor read document count by collection?

帅比萌擦擦* 提交于 2020-07-27 03:29:49

问题


I'm monitoring document read count in Firebase Console > Firestore > Usage section.

However, I want to find a way to see document read count by collection so that I can know which query to optimize.

Is there anyway for that?
I looked into GCP monitoring but I couldn't achieve what I want to do here.

I read documents from js SDK and nodejs Admin SDK


回答1:


Firestore provides no accounting other than a total running read count for the entire database for the last 30 days. If you need something more specific, you'll have to record it yourself somehow.



来源:https://stackoverflow.com/questions/61112274/firebase-firestore-how-to-monitor-read-document-count-by-collection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!