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

lifetime of a lock #137

Open
yegor256 opened this issue Jul 25, 2024 · 0 comments
Open

lifetime of a lock #137

yegor256 opened this issue Jul 25, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yegor256
Copy link
Member

Let's introduce a lifetime column for the lock table, where we should either keep NULL or a number of seconds -- this is how much time this lock should stay alive. When the time passes, it should automatically be deleted from the database.

BTW, maybe PostgreSQL has some built-in feature for such a functionality and we don't need to create a column. Maybe something like a delayed DELETE query.

@yegor256 yegor256 added enhancement New feature or request help wanted Extra attention is needed labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant