Skip to content

Allow to overwrite the advisory lock's name #379

Open
@masylum

Description

@masylum

We see a lot of lock timeouts due to the advisory lock. Right now, we see that the advisory lock uses the class name to determine the unique name. But in our case, we could scope the name more narrowly to the tenant since we know for sure that different tenants will not corrupt each other (we have closure tree on the Employee model that belongs to one Company). Would it make sense to be able to overwrite the lock name on runtime? In our case, we would love to add the company id, so we hold the lock only within a single tenant, minimizing contention.

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