[英]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我已经看过
this
和this
话题,但他们没有提供问题的答案
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.