Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
698969
· 2y ago · 0 comments
In one of the snippets, there is a 10 second sleep inside a transaction to add delays between polling if there are no tasks,
Shouldn't that be outside the transaction?
Comments
[–]
surprisetalk
2y ago
Yes, it would definitely be more performant to move it outside of the transaction :) good catch