Skip to content

Default pessimistic lock should be update lock #368

@yellowKompressor

Description

@yellowKompressor

Default pessimistic lock (i.e. Model.lock) is implemented as 'WITH(HOLDLOCK, ROWLOCK)'.
The purpose of the lock is to prevent deadlocks in case of select, update sequence. It translates to SELECT ... FOR UPDATE for most databases.

HOLDLOCK, ROWLOCK does not provide that level of protection.
UPDLOCK is the equivalent of FOR UPDATE in SQL server.

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