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

Any support for "FOR UPDATE"? #308

Open
m1ome opened this issue Mar 27, 2019 · 0 comments
Open

Any support for "FOR UPDATE"? #308

m1ome opened this issue Mar 27, 2019 · 0 comments

Comments

@m1ome
Copy link

m1ome commented Mar 27, 2019

Hey, wonderful software, but i am trying to define do you have a FOR UPDATE support.
It can be very handy to do such things when you have very concurrent selects & updates, and you wanna make sure only one worker/instance will work with record concurrently.

In e.g. if i want to load use and check if it have a proper status i will do:

BEGIN;
SELECT * FROM user WHERE id=123 FOR UPDATE SKIP LOCKED;

... DOING SOME STUFF, checking if it return nothing and e.t.c

COMMIT;
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