Firestore是否对不返回数据的读取收费 [英] Does firestore charge for reads which does not return data

查看:42
本文介绍了Firestore是否对不返回数据的读取收费的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了firebase上的文档,但没有提到这样的情况:例如,我有一个包含100,000条记录的集合,但是我正在运行的查询未带回任何结果,这意味着没有一个文档满足条件.我仍然需要为检查100,000个文档付费吗?

I checked the documentation on firebase but it does not mention the scenario where for example I have a collection with 100,000 records but the query that I am running does not bring back any result, which means none of the document satisfied the condition. Would I be still charged for checking 100,000 document ?

我当前在节点服务器上运行一个cron作业,该作业不断查询firestore数据库以查看已过期的记录,如果该记录已过期(这是通过使用当前时间戳检查时间戳来完成的),然后进行更新文档中的一个字段.我注意到即使结果集为空,我仍要为读取操作付费.

I currently have a cron job running in a node server which constantly queries the firestore database to look at records which have expired, it the record has expired (this is done by checking the timestamp with the current timestamp) then I am updating a field in the document. I noticed that I am being charged for the reads even though the result set was empty.

推荐答案

根据firebase.google.com/docs/firestore/pricing:

According to firebase.google.com/docs/firestore/pricing:

即使您执行的每个查询都没有返回结果,也要为每个查询最少读取一份文档."

"There is a minimum charge of one document read for each query that you perform, even if the query returns no results."

这篇关于Firestore是否对不返回数据的读取收费的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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