Closed leeym closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 80.05%. Comparing base (
c1474e1
) to head (2aa986d
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Awesome, thanks!
Add the following two
LockPostgreSQL
implementsDistLocker
using advisory locks in PostgreSQLBenchmarkDistLockers
to compare the performance for distributed lockersIt will be easier to review in unified view and hide whitespace.
I should reopen the previous PR instead of creating a new one. Anyway, the difference is that in https://github.com/mennanov/limiters/pull/38 I used session-level advisory lock. Since in the test we share the same database connection, thus the same session, between two lockers, they interfere with each other as the lock acquired by one locker can be released by the other one. In this PR I use transaction-level advisory lock, so each locker has its own transaction even if they share the same database connection.