zlacker

[parent] [thread] 0 comments
1. Xophme+(OP)[view] [source] 2021-06-12 13:40:42
SKIP LOCKED looks interesting; I'll have to try that. I've used advisory locks in the past, but I kept running into deadlocks when I tried to acquire them intelligently (just for popping off the queue). It was unclear why, at the time, so I just put an advisory lock on every transaction. Obviously that causes serious contention problems as the number of jobs and workers increase.
[go to top]