Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck
Turso 0.8 targets SQLite's single-writer bottleneck with BEGIN CONCURRENT, an MVCC mode where transactions start independently and commit in groups. At 1,000 TPS with Poisson arrivals, p99.9 latency is 2.4 ms at 32 connections versus 1.2 s for SQLite, whose lock-retry sleeps inflate tail latency. On disjoint-key inserts, Turso scales to about 9,500 TPS at 64 connections while SQLite stays near 1,370 TPS, though SQLite is faster with a single connection. The release also adds full window function and recursive CTE support, MVCC-compatible full-text search, and optimizer work including correlated subquery unnesting, hash joins and JSON EXPLAIN QUERY PLAN output.
Related posts
- Beyond the Single-Writer Limitation with Turso's Concurrent Writes
Turso hardMasterTurso 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. An in-memory row-version index sits on top of the B-tree and WAL, conflicts are detected per row at commit time instead of per page, and the MVCC log is checkpointed back into the database file through the WAL. In benchmarks SQLite still wins single-threaded, but Turso is 16% faster with multiple threads and pure inserts, and 4x faster with 8 threads and 1ms of compute per transaction. The feature is an early tech preview: CREATE INDEX is not supported and full-row versioning carries a high memory cost.
- Concurrent Writes in Practice: Building High-Throughput Apps with Turso's MVCC
Turso mediumAdeptTurso'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. Turso's benchmarks show write transactions running 4x faster than SQLite at 8 threads with 1ms of compute per transaction, and 16% faster with no compute. The biggest gains come from transactions that read, compute, then write, from ingestion across distinct rows, and from long-running augmentation jobs. Practical use on Turso Cloud requires opting in and creating a tursodb database, with working TypeScript, Python and Rust code for concurrent transactions and bounded exponential-backoff retry wrappers for write-write conflicts.
- SQLite Concurrent Writes Are Here: Early Preview on Turso Cloud
Turso mediumAdeptTurso 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. Unlike SQLite's single-writer WAL model (SQLITE_BUSY at transaction start) or its unmerged BEGIN CONCURRENT branch (page-level conflicts that produce false collisions), writes to unrelated rows on the same B-tree page no longer conflict. Retry logic is still needed for genuine same-row conflicts, which hot-row workloads will hit often. To use it, enable the feature in the dashboard, create a tursodb database, and issue BEGIN CONCURRENT, with examples shown for the TypeScript, Rust and Python clients.
- Turso v0.5.0
Turso hardMasterTurso v0.5.0 promotes MVCC-based concurrent writes (BEGIN CONCURRENT, adapted from Hekaton) to beta. The MVCC work adds commit dependency tracking, a rewritten crash-safe logical log, low-watermark garbage collection, savepoints, hardened conflict detection and lock-free rowid allocation, verified with Antithesis, Hermitage and Elle. The release also adds experimental Tantivy-based full-text search stored inside the SQLite B-tree, and optimizer upgrades: hash joins with bloom filters, outer joins and disk spilling, semi/anti-join decorrelation, multi-index OR scans and a reworked cost model. Rounding it out are STRICT tables with user-defined types via CREATE TYPE, and stable change data capture with a v2 transaction-grouped record format.
- Turso v0.7.0
Turso hardMasterTurso 0.7 drops the beta label and focuses on performance and robustness for embedded, multi-tenant use: the core no longer blocks on I/O, yields CPU via a new StepResult::Yield, moves to fallible allocation so OOM surfaces as an error, and treats the page cache as a soft limit like SQLite. The MVCC engine gets a linear-merge dual cursor that replaces per-row skiplist lookups (about a quarter of CPU time on write-heavy loads), watermark-driven garbage collection, experimental passive checkpoints that don't stop the world, and smaller row versions. SQL additions include PostgreSQL-style sequences (now backing AUTOINCREMENT), ICU collations, REINDEX, ordered-set aggregates and window-function groundwork. The SDKs gain a SQLite-compatible .NET/EF Core provider, GIL release and FTS in Python, and concurrent transactions in JavaScript.