Better HN
topnewbestaskshowjobs
Log inSign up

teling2

2 karma · joined Apr 13, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

The other difficulty is if you don't restore the entire state in a single transaction. Imagine you have partial data restored in Table A but haven't updated Table B correspondingly. Now some other program that consumes Table A and Table B and doesn't have error handling will crash (or worse, mutate state in other weird ways).