Skip to content

Add support for SELECT ... FOR UPDATE WAIT n #24

Open
@marcosmoyano

Description

@marcosmoyano

Code of Conduct

  • I agree to follow Django's Code of Conduct

Feature Description

MariaDB supports SELECT ... FOR UPDATE WAIT n since version 10.3.0. I'd like to be able to use that feature through the Django ORM.
Ref: https://mariadb.com/kb/en/wait-and-nowait/

Problem

Right now I don't have a clean mechanism to set a timeout on a locking statement. I'd like to be able to set a guardrail in a form of a timeout for long running transactions.

Request or proposal

proposal

Additional Details

No response

Implementation Suggestions

I'd extend the select_for_update signature to allow an extra argument, something like select_for_update(wait=n)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Idea

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions