簡體   English   中英

由於每個文檔每秒寫入 1 次限制而導致寫入失敗時,Firestore 是否會出錯或重試?

[英]Does Firestore through error or retries when write failed due to the 1 write per sec per document limitation?

我在 Ionic 5 中的項目。例如,如果多個用戶使用以下值更新 Firestore 文檔。

try{
  await this.afs.doc('path').update({ count: firestore.FieldValue.Increment(1)});
}catch (error) {
 ...
}

如果由於 Firestore 限制每個文檔每秒寫入 1 次而導致用戶寫入失敗,代碼是否能夠將其catch為錯誤。 另外,Firestore 會重試失敗的寫入嗎?

是的,它會生成一個您可以捕獲的錯誤。 不,不會重試。

暫無
暫無

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

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