8000 New safe method lockForUpdateSkipLocked() for FOR UPDATE SKIP LOCKED · Issue #2253 · laravel/ideas · GitHub
[go: up one dir, main page]

Skip to content 8000
This repository was archived by the owner on Jul 16, 2021. It is now read-only.
This repository was archived by the owner on Jul 16, 2021. It is now read-only.
New safe method lockForUpdateSkipLocked() for FOR UPDATE SKIP LOCKED #2253
@oleksiikhr

Description

@oleksiikhr

I saw this PR and it seems to me that it would be nice to transfer this method to Builder or to move it somewhere:

Illuminate/Queue/DatabaseQueue@getLockForPopping()

To a method, for example - lockForUpdateSkipLocked(). Which allowed to safely enable SKIP LOCKED functionality if it is supported by the current DB or its version.

Now it is necessary to use the lock('FOR UPDATE SKIP LOCKED'), but before that, check whether the client has the current database.

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