[英]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.