簡體   English   中英

Firebase 資源在 blaze 計划中耗盡(例如檢查配額)

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

我在Vue應用程序中使用Firestore

Firestore 在負載不高時工作正常

但是,當我嘗試從大約 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;
        });
      }

有時(不可重現),我收到以下錯誤:

@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.

我已經看過thisthis話題,但他們沒有提供問題的答案

我在 blaze 計划中,所以據我所知不應該有閱讀配額

這是一個錯誤還是我錯過了什么?

謝謝😀

我認為您應該使用 values change listener 而不是 Query 。 它將有所幫助,將這些值更改數據存儲在本地緩存中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM