3 ms·
isn't this just pushing the complexity around? Either my write thread manages the lock, or turso's does.
by tonymet 9mo ago
isn't this just pushing the complexity around? Either my write thread manages the lock, or turso's does.
- gpm 9mo agoMVCC is a non-locking algorithm for concurrent writers that the big databases like postgres use (with caveats like aborting some transactions if conflicts would exist). It's not a matter of pushing locks around but allowing multiple threads to operate on the data concurrently.
- tonymet 9mo agothanks helpful thanks. seems to have some tradeoffs. I would likely lean toward the simpler thread model but it sounds compelling.