-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Improve table locking with timeout + retry
When trying to acquire the report table lock with retries, do not use NOWAIT and sleep (), but instead use the lock_timeout setting in the current transaction. The timeout is adjusted to be below the deadlock_timeout and the number of retries is raised accordingly. This allows waiting processes to acquire the lock as soon as it becomes available, reducing wait times for transactions blocked by fast other transactions.
- Loading branch information
1 parent
360e2de
commit 3309a1f
Showing
4 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters