Turso v0.4.0
Turso v0.4.0 overhauls its experimental MVCC mode, which lifts SQLite's single-writer limit, adding index support, checkpointing and recovery. MVCC is now enabled with `PRAGMA journal_mode = 'experimental_mvcc'`, persisted in the file header, and makes the file unreadable by stock SQLite until you switch back to WAL. Partial sync fetches pages on demand, with bootstrap queries and prefetching (persistent mode is Linux-only because it needs sparse files), and sync now ships in the Python and Go SDKs. The release also adds page cache spilling for large queries, ANALYZE support for better join ordering, and a disk-spilling hash join for non-indexed columns in place of SQLite's ephemeral B-tree indexes.
Related posts
- 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.6.0
Turso mediumAdeptTurso 0.6 is the first release supporting all major SQLite features, adding experimental multi-process WAL access (OFD locks on Linux, fcntl elsewhere, IOCP on Windows) and VACUUM/VACUUM INTO. SQL additions include production-ready triggers, temp tables, virtual generated columns, CREATE TABLE AS SELECT, partial WITHOUT ROWID support, UPDATE...FROM, FILTER on aggregates, NULLS FIRST/LAST, and INDEXED BY hints. The STRICT type system gains arrays, structs/unions and Postgres-style domains, and MVCC logical logs are now encrypted with AEAD in 32 KiB chunks. SDK changes add query timeouts, async prepare, fixed interactive transactions in the serverless driver, an npm-distributed CLI and a SQLAlchemy asyncio dialect.
- 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.
- 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.
- Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck
Turso mediumAdeptTurso 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.