访问Firebase Firestore数据库仪表板是否被视为读取操作? [英] does accessing the firebase firestore database dashboard will be considered as read operation?

查看:56
本文介绍了访问Firebase Firestore数据库仪表板是否被视为读取操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在处于该项目的开发阶段.目前该项目仅使用一个Android应用作为前端.来自Android的查询(使用限制和分页).但是读取的文档总数远远超出了预期的数量.

I am now in developing phase for the project. currently the project only using one Android app as the frontend. the query from Android using limit and pagination. but the total number of documents read is way above the expected number.

我试图弄清楚,为什么即使用户只有一个(我),读取文档的数量仍然如此之大.我担心,如果阅读的数量如此之多,该项目将是不可行的.那就是为什么我需要弄清楚Firestore的读取行为

I am trying to figure this out, why the number of read documents is so big even though the user is only one (me). I am scared the project will not be feasible if the number of read is so big. thats why i need to figure out the firestore read behaviour

当我访问firestore仪表板并选择一个集合(如下图所示)时,它将显示蓝色的加载指示器,然后显示所有可用的文档.目前在活动集合中,我有52个文档.为了调试目的,我多次访问了这样的事件集合中的所有文档.

When I accessed the firestore dashboard, and select a collection like the image below, it will show blue loading indicator and then show all documents available. currently in the event collection I have 52 documents. I access all documents in the event collection like this for several times for debugging purpose.

因此,每当我点击该事件集合时,我都将其视为52个读取操作,因此读取操作将不仅来自Android设备,而且来自仪表板?这就是为什么读取次数如此之大的原因.我说的对吗?

so whenever i tap that event collection, I assume it will be counted as 52 read operation, so the read operation will not only come from Android device but also from the dashboard ? thats why the number of reads is so big. am I right ?

如果这样的话....

假设我的事件收集中有100000个文档,那么每当我点击该事件收集时,我也会执行100000个读取操作吗?有没有办法限制此仪表盘的读取?

say if I have 100000 documents in event collection, then whenever i tap that event collection, will i perform 100000 read operation as well ? is there a way to limit this dashboard read ?

推荐答案

那么读取操作将不仅来自Android设备,而且还来自仪表板?这就是为什么读取次数如此之大的原因.我说的对吗?

so the read operation will not only come from the Android device but also from the dashboard? That's why the number of reads is so big. am I right?

是的,你是对的.

说如果我在事件集合中有100000个文档,那么每当我点击该事件集合时,我也会执行100000个读取操作吗?

say if I have 100000 documents in event collection, then whenever I tap that event collection, will I perform 100000 read operation as well?

否,您只需要为属于第一页的文档数付费.在控制台内部,有一个为此特别实现的分页机制.因此,您可以收取您馆藏中存在的所有文档的费用.

No, you'll be charged only for the number of documents that belong to the first page. Inside the Console, there is a pagination mechanism especially implemented for that. So you'll be not charged for all the documents that exist in your collection.

是否有一种方法可以限制此仪表板的读取?

Is there a way to limit this dashboard read?

该限制已经存在,但请注意,随着向下滚动,您会获得更多文档,这意味着要进行更多读取操作.

The limitation already exists but be aware that as much as you scroll down, you get more documents which means more read operations charged.

这篇关于访问Firebase Firestore数据库仪表板是否被视为读取操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆