• Sources: primary
  • Summary: MikaĆ«l Francoeur says PRAGMA journal_mode MVCC flips two header bytes so stock SQLite refuses the file, then transactions write only to a logical redo log and an in-memory map of row IDs to version vectors, under snapshot isolation where write conflicts force a retry. A checkpoint, triggered by default when the logical log passes 4 MB, folds committed rows into B-tree pages through the WAL under a global exclusive lock, briefly returning busy errors. Limits include full row versions instead of deltas and no spilling, so a transaction cannot exceed MV store memory.
  • Why it matters: Teams embedding SQLite who are blocked by its single writer can see what concurrent writes in Turso cost in isolation level, checkpoint stalls and memory.
  • Background: SQLite's WAL mode lets many readers run alongside one writer. Writers append full pages to the write-ahead log, and a checkpoint later copies them into the main file. MVCC keeps several versions of each row so concurrent transactions do not block each other. Turso began as a Rust rewrite of SQLite and keeps its file format and SQL dialect.