消防站限制 [英] Firestore limit

查看:77
本文介绍了消防站限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firestore作为其免费捆绑包的一部分提供了50000个文档读取操作.

Firestore offers 50000 documents read operations as part of its free bundle.

但是,在我的应用程序中,客户端正在获取包含价格数据的集合.价格数据会随着时间的推移而创建.因此,从特定的时间戳开始,客户端最多可以读取1000个文档.每个文档代表一个带有价格信息的时间戳. 这意味着,如果客户端刷新其Web浏览器50次,它将立即耗尽我的配额.这仅适用于单个客户. 那就是发生的事情.并得到此错误:

However, in my application, the client is fetching a collection containing price data. The price data is created over time. Hence, starting from a specific timestamp, the client can read up to 1000 documents. Each document represents one timestamp with the price information. This is means that if the client refreshes his/her web browser 50 times, it will exhaust my quota immediately. And that is just for a single client. That is what happened. And got this error:

错误:8 RESOURCE_EXHAUSTED:超出配额

Error: 8 RESOURCE_EXHAUSTED: Quota exceeded

价格数据是静态的.一旦写入,就不应更改. 是否有解决此问题的方法,或者我应该考虑使用Firestore以外的其他数据库?

The price data are static. Once they have been written, it is not supposed to change. Is there a solution for this issue or I should consider other database other than Firestore?

推荐答案

错误消息表明您已经用尽了可用的配额.在免费计划中,配额是每天读取50,000个文档,因此您已经阅读了该数量的文档.

The error message indicates that you've exhausted the quota that is available. On the free plan the quota is 50,000 document reads per day, so you've read that number of documents already.

可能的解决方案:

  • 升级到具有更高配额的付费计划.
  • 请等待直到明天再继续,因为配额每天都会重置.
  • 尝试另一个免费项目,因为每个项目都有自己的配额.

这篇关于消防站限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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