Firebase Firestore:如何按集合监视读取的文档数? [英] Firebase Firestore: How to monitor read document count by collection?
问题描述
我正在Firebase控制台> Firestore>使用情况部分中监视文档读取计数.
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.
反正有吗?
我研究了GCP监视,但在这里无法实现我想要做的事情.
Is there anyway for that?
I looked into GCP monitoring but I couldn't achieve what I want to do here.
我从js SDK和nodejs Admin SDK阅读文档
I read documents from js SDK and nodejs Admin SDK
推荐答案
Firestore除了提供过去30天内整个数据库的总运行读取计数外,不提供任何记帐.如果您需要更具体的内容,则必须以某种方式自己记录下来.
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.
这篇关于Firebase Firestore:如何按集合监视读取的文档数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!