fix: PgLockRegistry uses single shared connection for all advisory locks #172
No reviewers
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit!172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/shared-advisory-conn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #171
One PG connection can hold thousands of advisory locks (session-scoped). Previous impl used one connection per lock, exhausting the pool.
Before: N locks = N connections held permanently
After: N locks = 1 connection
Changes:
Close()for clean shutdown