Skip to content

Enhance concurrency control section #96

@mmnosek

Description

@mmnosek

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions