8000 Any support for "FOR UPDATE"? · Issue #308 · src-d/go-kallax · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
Any support for "FOR UPDATE"?  #308
Open
@m1ome

Description

@m1ome

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0