Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
swah
· 9y ago · 0 comments
I didn't understand why he couldn't keep staged and checkpoints in Redis as well...
Comments
[–]
hackcrafter
9y ago
I was thinking that too, then I realized he was wrapping the code in `DB.transaction` blocks, which rollback on any type of exception, so that all those staged/checkpoint entries only persistent if the block cleanly executes.
Pretty neat...