Skip to content

Implement LockMode.UpgradeSkipLocked #2005

Open
@beppler

Description

@beppler

Hibernate has an additional lock mode called UPGRADE_SKIPLOCKED described as:

The lock acquisition request skips the already locked rows. It uses a SELECT …​ FOR UPDATE SKIP LOCKED in Oracle and PostgreSQL 9.5, or SELECT …​ with (rowlock, updlock, readpast) in SQL Server.

This kind of lock is very usefull quen there are many consumers for a table that is used as a queue.

Documentation for Hibernate version 5

Documentation for Hibernate version 4

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