Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to overwrite the advisory lock's name #379

Open
masylum opened this issue May 20, 2021 · 0 comments
Open

Allow to overwrite the advisory lock's name #379

masylum opened this issue May 20, 2021 · 0 comments

Comments

@masylum
Copy link

masylum commented May 20, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant