-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Type of issue:
In concurrency control section of the page linked below, we use update (given 100, make two concurrent updates 110 and 120) to show the problem with concurrent updates. Then we ask the question what is the correct result, but there is no answer. This question shouldn't be left without the answer.
@k-rus @dan31 could you help us with the correct answer? Am I right that in this case transaction that tries to commit later won't be committed? Do we check conflicts with the transactions that are not yet committed? As far as I know, optimistic concurrency control will detect the conflict and rollback the transaction (which is the easiest way to resolve the conflict)
Do we have any other way of conflict resolution?
Link to relevant page:
https://docs.starcounter.io/guides/transactions/#concurrency-control