---
title: "Birth and death of a row in Turso's MVCC"
description: "Turso's MVCC, modeled on Hekaton, tracks each row as a chain of versions in a lock-free SkipMap, with begin/end fields holding a TxId while a transaction is active and a commit timestamp once it commits."
url: "https://swe.quest/articles/birth-and-death-of-a-row-in-turso-s-mvcc-f60b68028888940e"
canonical: "https://turso.tech/blog/mvcc-row-lifetime"
source: "Turso"
published: "2026-10-19"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 14
tags: ["storage-engines","sqlite","consistency","databases"]
---

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

A post on [Turso](https://swe.quest/sources/turso.md), published 2026-10-19, 14 min read, Deep dive. Original: [https://turso.tech/blog/mvcc-row-lifetime](https://turso.tech/blog/mvcc-row-lifetime)

## Summary

Turso's MVCC, modeled on Hekaton, tracks each row as a chain of versions in a lock-free SkipMap, with begin/end fields holding a TxId while a transaction is active and a commit timestamp once it commits. The walkthrough follows one row from the INSERT bytecode executed by the VDBE, through the commit protocol (timestamp acquisition, first-committer-wins conflict checks, dependency waits, logical-log write and fsync), crash recovery by replaying the logical log, and checkpointing into the SQLite WAL and B-tree. Checkpoints default to a blocking Truncate mode triggered at about 4 MB, with an experimental Passive mode that lets writers proceed. Reads merge the in-memory store and the B-tree with a two-pointer iteration. Deletes set the end field under the version-chain lock, so concurrent writers to the same row get a WriteWriteConflict.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- MVCC and snapshot isolation ([easy posts on Sandboxing & isolation](https://swe.quest/tags/sandboxing.md?difficulty=easy))
- SQLite WAL mode ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))
- write-ahead logging and fsync ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- B-tree storage ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))

## Keywords

Turso, MVCC, Hekaton, SQLite, VDBE, SkipMap, logical log, checkpoint

## Related posts

- [Turso v0.5.0](https://swe.quest/articles/turso-v0-5-0-1bc59038f4941e8d.md): Turso · 2026-03-04 · Hard · 6 min read · SQLite, Storage engines, Query engines, Consistency models, Search
  Turso v0.5.0 promotes MVCC-based concurrent writes (BEGIN CONCURRENT, adapted from Hekaton) to beta.
- [Beyond the Single-Writer Limitation with Turso's Concurrent Writes](https://swe.quest/articles/beyond-the-single-writer-limitation-with-turso-s-concurrent-writes-cb123f350ef5318c.md): Turso · 2025-10-06 · Hard · 12 min read · SQLite, Consistency models, Storage engines, Concurrency, Performance engineering
  Turso implements SQLite-compatible BEGIN CONCURRENT using Hekaton-style MVCC, which removes SQLite's single-writer bottleneck and the SQLITE\_BUSY errors that come with it.
- [Turso v0.4.0](https://swe.quest/articles/turso-v0-4-0-191cca637e457c1d.md): Turso · 2026-01-05 · Medium · 3 min read · SQLite, Storage engines, Query engines, Local-first & sync, Concurrency
  Turso v0.4.0 overhauls its experimental MVCC mode, which lifts SQLite's single-writer limit, adding index support, checkpointing and recovery.
- [SQLite Concurrent Writes Are Here: Early Preview on Turso Cloud](https://swe.quest/articles/sqlite-concurrent-writes-are-here-early-preview-on-turso-cloud-0a785739ef6a43fe.md): Turso · 2026-08-03 · Medium · 5 min read · SQLite, Concurrency, Consistency models, Storage engines
  Turso Cloud now offers concurrent writes in early preview: transactions opened with BEGIN CONCURRENT run optimistically in parallel on an MVCC engine modeled on Microsoft's Hekaton, with conflicts detected at commit time at row granularity.
- [Concurrent Writes in Practice: Building High-Throughput Apps with Turso's MVCC](https://swe.quest/articles/concurrent-writes-in-practice-building-high-throughput-apps-with-turso-s-mvcc-ce150ea2df977c45.md): Turso · 2026-08-27 · Medium · 12 min read · SQLite, Concurrency, Consistency models, Databases
  Turso's BEGIN CONCURRENT replaces SQLite's single-writer lock with Hekaton-inspired optimistic MVCC that detects conflicts at commit time and at row granularity, rather than the page-level detection in SQLite's unmerged experimental branch.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
