logoalt Hacker News

simeonGriggstoday at 6:47 PM2 repliesview on HN

Yo! Author here, I’ll be around if anyone’s got questions!


Replies

dondraper36today at 8:06 PM

If I understood correctly, the queue implementation in the blog post holds a transaction while an operation is in progress.

I see the advice to make it as short as possible, but why can’t we update the status column to, say, “processing” and avoid potentially long transactions at all?

jeeybeetoday at 7:07 PM

Did you test with fillfactor < 100 on the queue table? With HOT updates, status changes can reuse dead space without creating new index entries, which seems like it could significantly delay the onset of the death spiral?

show 2 replies