简体   繁体   English

Firebase 资源在 blaze 计划中耗尽(例如检查配额)

[英]Firebase resource exhausted (e.g. check quota) on blaze plan

I am using a Firestore within Vue app.我在Vue应用程序中使用Firestore

Firestore works fine when the load is is not high Firestore 在负载不高时工作正常

but , when I try to request around ~10k (in total) records from ~10 different collections like this:但是,当我尝试从大约 10 个不同的集合中请求大约 10k(总共)条记录时,如下所示:

 for (const module in dynamicModules) {
        Vue.set(state, module, []);
        bindFirestoreRef(module, db.collection(
          "tenants/" + store.state.tenantID + "/modules/" + module +
          "/records")).then(() => {
            const m = module;
        });
      }

Sometimes (not reproducable), I receive the following error:有时(不可重现),我收到以下错误:

@firebase/firestore: Firestore (7.19.0): FirebaseError: [code=resource-exhausted]: Resource has been exhausted (e.g. check quota).
@firebase/firestore: Firestore (7.19.0): Using maximum backoff delay to prevent overloading the backend.
Uncaught (in promise) FirebaseError: Failed to get document because the client is offline.

I've seen this and this topic but they don't provide an answer to the problem我已经看过thisthis话题,但他们没有提供问题的答案

I'm on the blaze plan so as far as I can see there should not be a read quota我在 blaze 计划中,所以据我所知不应该有阅读配额

Is this a bug or am I missing something?这是一个错误还是我错过了什么?

Thanks 😀谢谢😀

I think you should use values change listener instead of Query .我认为您应该使用 values change listener 而不是 Query 。 It will help , Store these values changes data in your local cache.它将有所帮助,将这些值更改数据存储在本地缓存中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检查浏览器是否缓存了特定资源(例如图像)? - How to check if a particular resource (e.g. image) is cached by the browser? 如何检查2位小数? 例如2.2.10 - how to check 2 decimals? E.g. 2.2.10 检查用户是否是来自 Google Analytics 的回访者(例如) - Check if user is returning visitor (e.g.) from Google Analytics Angular-通用图像服务与特定资源(例如,用户,图像,动物)图像服务 - Angular - Generic image service vs resource-specific (e.g., user, image, animal) image services 我如何以编程方式查看网站发出的请求(例如 API 或资源请求) - How can I programmatically see what requests (e.g. API or resource requests) are being made by a website 在生产 Firebase Function 中公开垃圾收集(例如 --expose-gc) - Expose garbage collection (e.g. --expose-gc) in a production Firebase Function 在ng-grid和firebase / angularFire上添加行时,有没有一种方法可以使用增量ID(例如0、1、2、3、4)? - Is there a way to have incremental IDs (e.g. 0,1,2,3,4) when adding rows on ng-grid and firebase/angularFire? 如何检查HTML元素是否没有用JavaScript面对用户的数据(例如文本或图片)? - How to check if an HTML element has no user facing data (e.g. text or pictures) in javascript? 我是否应该(静态地)对第三方代码进行类型检查(例如使用Flow)? - Should I (statically) type-check Third-party codes (e.g. using Flow)? jQuery:检查窗口是否小于除像素以外的x个单位(例如em,rem)? - jQuery: Check if window is smaller than x units other than pixels (e.g. em, rem)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM