Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



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




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: