client-rust
client-rust copied to clipboard
Will pressure testing put on the same key with pessimistic transactions result in a write conflict error?
As stated in the title
It should not. Pessimistic transactions will acquire the lock of keys before prewrite. Once the locks are acquired, other transactions (try to lock these keys as well) are blocked.
It should not. Pessimistic transactions will acquire the lock of keys before prewrite. Once the locks are acquired, other transactions (try to lock these keys as well) are blocked.
How can I lock a row of data via a specific primary key, even if it won't be modified?