Error: 10 ABORTED: Too much contention on these documents. Please try again

前端 未结 6 799
臣服心动
臣服心动 2020-12-10 16:24

What does this error mean?

Especially, what do they mean by : Please try again

Does it mean that the transaction failed I have to re-run the

6条回答
  •  清歌不尽
    2020-12-10 16:58

    The transaction does run several times if needed, but if the values read continue to be updated before the write or writes can occur it will eventually fail, thus the documentation noting the transaction is retried a finite number of times. If you have a value that is updating frequently like a counter, consider other solutions like distributed counters. If you'd like more specific suggestions, I recommend you include the code of your transaction in your question and some information about what you're trying to achieve.

提交回复
热议问题