3 ms·
Here's the companion essay with more code snippets: https://taylor.town/pg-task https://taylor.town/pg-task
by surprisetalk 2y ago
Here's the companion essay with more code snippets: https://taylor.town/pg-task https://taylor.town/pg-task
- 698969 2y agoIn 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?
- surprisetalk 2y agoYes, it would definitely be more performant to move it outside of the transaction :) good catch