Hacker News new | ask | show | jobs
by 698969 733 days ago
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?

1 comments

Yes, it would definitely be more performant to move it outside of the transaction :) good catch