Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ukd1
· 5y ago · 0 comments
You really really wanna do everything (locking, working, unlocking, deleting or completing) in a transaction, and use SKIP LOCKED to find work. It's actually pretty high performance when you so this.
Comments
[–]
phumberdroz
5y ago
do you have a more detailed example on how this could look like?
[–]
taspeotis
5y ago
The article starts by discussing SKIP LOCKED
[–]
subleq
5y ago
https://github.com/gavinwahl/django-postgres-queue