closure_tree icon indicating copy to clipboard operation
closure_tree copied to clipboard

Allow to overwrite the advisory lock's name

Open masylum opened this issue 3 years ago • 0 comments

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.

masylum avatar May 20 '21 11:05 masylum