# Birth and death of a row in Turso's MVCC

DevFeed: [Birth and death of a row in Turso's MVCC](<https://devfeed.tech/articles/birth-and-death-of-a-row-in-turso-s-mvcc-91189.md>)

Original publisher: [Read original article](<https://turso.tech/blog/mvcc-row-lifetime>)

Author: Pere Diaz Bou

Published: 2026-10-19T00:00:00Z

Content type: article

Language: en

Sources: [Turso](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [Turso](<https://devfeed.tech/topics/turso.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [rdbms](<https://devfeed.tech/topics/rdbms.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>)

Tags: [bytecode](<https://devfeed.tech/tags/bytecode.md>), [checkpoint](<https://devfeed.tech/tags/checkpoint.md>), [database](<https://devfeed.tech/tags/database.md>), [delete](<https://devfeed.tech/tags/delete.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [mvcc](<https://devfeed.tech/tags/mvcc.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [turso](<https://devfeed.tech/tags/turso.md>)

## AI overview

In Turso's MVCC, an INSERT first creates an in-memory row version; commit assigns a timestamp, checks for conflicting writes and dependencies, then writes and fsyncs a logical log so the change can be replayed after a crash. Checkpoints move rows through the WAL into the B-tree and control log growth. The default truncate checkpoint waits until no transaction is open, blocks new transactions while running, and empties the log. Experimental passive mode checkpoints what is safe while allowing writers to progress concurrently, truncating only if no writer appended more log records. DELETE marks a version's end with the deleting transaction ID, replaced by a timestamp on commit; concurrent updates or deletes to that row conflict, and checkpointing removes deleted rows from the B-tree. MVCC enables concurrent writers except when they touch the same row.

## Source excerpt

What happens to a row in Turso's MVCC, from the bytecode that inserts it to the checkpoint that deletes it.