Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transactional consistent state changes, i.e. optimistic locking #38

Open
alejandromumo opened this issue Jul 19, 2024 · 0 comments
Open

Comments

@alejandromumo
Copy link
Member

          comment/shelve: at some point it would be nice to add transactional consistent state changes, i.e. optimistic locking. That means that e.g. when you update a row you do:
update swh_deposit
set status = 'WAITING'
where 
  id = 123
  and status = 'PENDING';

and then check if any rows were updated (i.e. what we already do for records with the version_id field).

Originally posted by @slint in #37 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant