简体   繁体   English

由于每个文档每秒写入 1 次限制而导致写入失败时,Firestore 是否会出错或重试?

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

My project in Ionic 5. For example, if multiple users updating a Firestore document with the following value.我在 Ionic 5 中的项目。例如,如果多个用户使用以下值更新 Firestore 文档。

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

If the write of a user fails due to the Firestore limitation of 1 write per second per document, will the code be able to catch it as an error.如果由于 Firestore 限制每个文档每秒写入 1 次而导致用户写入失败,代码是否能够将其catch为错误。 Also, will Firestore retry that failed write?另外,Firestore 会重试失败的写入吗?

Yes, it will generate an error you can catch.是的,它会生成一个您可以捕获的错误。 No, it will not be retried.不,不会重试。

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

相关问题 尝试写入 firestore 时出现“RestConnection Commit failed with error” - 'RestConnection Commit failed with error' when trying to write to firestore Firestore 写入文档 numpy 的无效类型错误 - Firestore write to document invalid type errors for numpy 每个文档的 Firebase-firestore 安全规则 flutter - Firebase-firestore security rules per document flutter Android Studio - 中止 Firebase Firestore 文档在时间限制后写入 - Android Studio - Abort Firebase Firestore document write after time limit Cloud Firestore:编写文档参考自 Flutter Plugin/SDK - Cloud Firestore: Write document reference from Flutter Plugin/SDK 使用 Firestore 模拟器时无法从客户端应用写入 Firestore - Cannot write to Firestore from client app when using Firestore Emulator 无法编写 firestore 测试,因为:FIRESTORE (9.6.1) INTERNAL ASSERTION FAILED: Unexpected state - Can't write firestore tests because of: FIRESTORE (9.6.1) INTERNAL ASSERTION FAILED: Unexpected state 如果 firestore 文档不存在,如何抛出错误? - How to throw an error if firestore document does not exist? 运行集成了 Firestore 的应用程序时,“由于错误 9,GooglePlayServices 不可用” - "GooglePlayServices not available due to error 9" when running an app with Firestore integrated 此文档在 firebase firestore 中不存在错误 - This document does not exist error in firebase firestore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM