SQLite 3.54.1 shipped on 2026-10-16 as a 32-bit-only heap-buffer overflow fix; 3.54.0 came a week earlier, on 2026-10-09. The version number is the least interesting news. Behind it sit a withdrawn release, a planner optimization that produced wrong answers, fixes blamed on reports “mostly coming from AIs”, and a WAL bug latent since 2010. Every concurrency improvement from 2026 is still on a branch.
SQLite 3.54.1 salió el 2026-10-16 con un arreglo de desbordamiento de búfer solo para builds de 32 bits; 3.54.0 llegó una semana antes, el 2026-10-09. El número es la noticia menos interesante: detrás hay una versión retirada, una optimización del planificador que daba resultados erróneos, correcciones atribuidas a informes “en su mayoría de IAs” y un bug del WAL latente desde 2010. Toda mejora de concurrencia de 2026 sigue en una rama.
Eight Releases, One Withdrawal
Ocho versiones y una retirada
Read the last eight minors in order and the argument is continuous. 3.49.0 (2025-02-06) added variadic iif(), automatic indexes on WITHOUT ROWID tables, and fixes for “three different performance regressions reported on the SQLite Forum”. 3.50.0 (2025-05-29) brought sqlite3_setlk_timeout() for blocking locks and JSONB interior edits that keep object size stable, so a small update fits in one page. 3.51.0 (2025-11-04) shipped EXISTS-to-JOIN, jsonb_each(), 64-bit WASM, and carray plus percentile in the amalgamation behind opt-in flags.
Las últimas ocho versiones menores sostienen una discusión única. La 3.49.0 (2025-02-06) añadió iif() variádica, índices automáticos en tablas WITHOUT ROWID y arreglos para “tres regresiones de rendimiento distintas reportadas en el foro de SQLite”. La 3.50.0 (2025-05-29) trajo sqlite3_setlk_timeout() para bloqueos y ediciones interiores de JSONB que dejan el tamaño del objeto estable, así que una actualización pequeña ocupa una página. La 3.51.0 (2025-11-04) publicó EXISTS-to-JOIN, jsonb_each(), WASM de 64 bits y carray con percentile en el amalgamation tras flags opt-in.
Then the record turns. 3.51.1 and 3.51.2 fixed incorrect results from that optimization plus a deadlock in the new broken-lock detection. 3.52.0 (2026-03-06) was withdrawn outright; every feature rolled into 3.53.0 (2026-04-09), which carried the WAL-reset fix into mainline, QRF CLI output, ALTER TABLE add/drop of NOT NULL and CHECK, and float→text at 17 significant digits. By 3.53.4 (2026-07-24) the changelog was blaming problems “mostly coming from AIs”.
Luego el registro se tuerce. La 3.51.1 y la 3.51.2 corrigieron resultados erróneos de esa optimización y un deadlock en la detección de bloqueos rotos. La 3.52.0 (2026-03-06) se retiró: todo pasó a la 3.53.0 (2026-04-09), que llevó el arreglo de WAL-reset a mainline, la salida QRF, ALTER TABLE para añadir o quitar NOT NULL y CHECK, y float→texto con 17 dígitos significativos. Hacia la 3.53.4 (2026-07-24) el changelog culpaba a problemas “en su mayoría de IAs”.
What 3.54 Actually Changes
Qué cambia realmente la 3.54
3.54.0 is a cleanup release with one useful number. The prompt is configurable with SQLITE_PS1/SQLITE_PS2; diskused() and .diskused report per-table page usage and deprecate sqlite3_analyzer; Windows XP/Vista-era support is gone. On speedtest1 under valgrind on Linux x64 it measures about 4% faster than 3.53.0 and about 7.5% faster than 3.51.0. Nothing here needs a migration.
La 3.54.0 limpia y trae un dato útil: el prompt se configura con SQLITE_PS1/SQLITE_PS2, diskused() y .diskused informan páginas por tabla y vuelven obsoleto sqlite3_analyzer, y se va el soporte de la era Windows XP/Vista. En speedtest1 bajo valgrind sobre Linux x64 mide cerca de 4% más que 3.53.0 y 7,5% más que 3.51.0. Nada exige migrar.
The Planner Keeps Getting Rewritten
El planificador se reescribe sin parar
The planner is a permanent construction site. The star-schema heuristics of 3.47/3.48 were fixed in 3.49.0 by raising the cost of dimension-table scans instead of lowering the fact-table cost — a change to the model, not to a constant. EXISTS-to-JOIN arrived in 3.51.0, was relaxed in 3.53.0, and returned wrong answers until 3.51.1 and 3.51.2. 3.54.0 simplifies expr OR TRUE/FALSE, ignores DISTINCT on the right of IN, and rewrites UNION…LIMIT 1.
El planificador es una obra permanente. Las heurísticas de esquema en estrella de 3.47/3.48 se corrigieron en 3.49.0 subiendo el costo de las tablas de dimensión en vez de bajar el de la tabla de hechos: un cambio en el modelo, no en una constante. EXISTS-to-JOIN llegó en 3.51.0, se relajó en 3.53.0 y devolvió respuestas erróneas hasta 3.51.1 y 3.51.2. La 3.54.0 simplifica expr OR TRUE/FALSE, ignora DISTINCT a la derecha de IN y reescribe UNION…LIMIT 1.
Concurrency Hasn't Moved (On Trunk)
La concurrencia no se movió (en trunk)
WAL mode is still one writer and N readers. PRAGMA journal_mode accepts DELETE, TRUNCATE, PERSIST, MEMORY, WAL and OFF; wal2 is not on trunk. It lives on a branch that keeps two WAL files, readable only by branch builds — anything else reports SQLITE_NOTADB — last merged from trunk on 2026-05-28. BEGIN CONCURRENT is branch-only too: optimistic page-level locking, locks deferred to COMMIT, COMMITs serialized, conflicts surfacing as SQLITE_BUSY_SNAPSHOT. Neither appears in lang_transaction.html.
El modo WAL sigue siendo un escritor y N lectores. PRAGMA journal_mode acepta DELETE, TRUNCATE, PERSIST, MEMORY, WAL y OFF; wal2 no está en trunk. Vive en una rama con dos archivos WAL, legibles solo por builds de la rama (lo demás da SQLITE_NOTADB), fusionada desde trunk el 2026-05-28. BEGIN CONCURRENT también es solo de rama: bloqueo optimista por página, bloqueos diferidos al COMMIT, COMMITs serializados y conflictos como SQLITE_BUSY_SNAPSHOT. Ninguno figura en lang_transaction.html.
HCTree, Dan Kennedy’s prototype backend, was still being checked in through September 2026: row-level optimistic locking, “dozens of concurrent writers”, and 48-bit page numbers that lift the maximum database to 1 EiB against 16 TiB nominal and 281 TB practical. It is explicitly incomplete — no BEGIN EXCLUSIVE, no backup API, no VACUUM, locking_mode a no-op — and no performance numbers are published. Every concurrency fix in 2026 is off-trunk.
HCTree, el prototipo de Dan Kennedy, recibía commits hasta septiembre de 2026: bloqueo optimista por fila, “docenas de escritores concurrentes” y páginas de 48 bits que elevan el máximo a 1 EiB, frente a 16 TiB nominales y 281 TB prácticos. Está explícitamente incompleto —sin BEGIN EXCLUSIVE, sin API de backup, sin VACUUM, locking_mode como no-op— y no hay cifras publicadas. Toda corrección de concurrencia de 2026 está fuera de trunk.
The 16-Year-Old Bug
El bug de 16 años
The WAL-reset bug was latent from 3.7.0 in 2010 through 3.51.2. Dan Kennedy found it by hand on 2026-03-03; the fix shipped in 3.51.3 and 3.53.0, backported to 3.44.6 and 3.50.7. It needs two or more connections writing and checkpointing simultaneously. A public reproducer from Phil Eaton appeared only on 2026-08-23. The team rates real-world occurrence as no more likely than an SSD failure or a cosmic ray — the right calibration, and the reason “sixteen years without an incident” is not “correct”.
El bug de WAL-reset estuvo latente desde 3.7.0 (2010) hasta 3.51.2. Dan Kennedy lo encontró a mano el 2026-03-03; la corrección salió en 3.51.3 y 3.53.0, con backports a 3.44.6 y 3.50.7. Requiere dos o más conexiones escribiendo y con checkpoint a la vez. El reproductor público de Phil Eaton llegó el 2026-08-23. El equipo calcula que la probabilidad real no supera la de un fallo de SSD o un rayo cósmico: buena calibración, y por eso “dieciséis años sin incidentes” no equivale a “correcto”.
The counterweight is the test apparatus: 100% branch coverage and 100% MC/DC of the core under TH3 (~50,362 cases, ~2.4M instances per run, ~248.5M in a soak), a SQL logic test of 7.2M queries cross-checked against four other engines, and dbsqlfuzz at ~500M cases per day. Tests were ~92,053 KSLOC against 155.8 KSLOC of library as of 3.42.0. That density still missed one interleaving for sixteen years.
El contrapeso es el aparato de pruebas: 100% de cobertura de ramas y MC/DC del núcleo bajo TH3 (~50.362 casos, ~2,4M de instancias por corrida, ~248,5M en un soak), una prueba de lógica SQL de 7,2M de consultas contra otros cuatro motores y dbsqlfuzz con ~500M de casos diarios. Las pruebas sumaban ~92.053 KSLOC frente a 155,8 KSLOC de biblioteca en la 3.42.0; aun así se les escapó un entrelazado durante dieciséis años.
Why It Still Wins
Por qué sigue ganando
Against the filesystem the engine wins cleanly: 10 KB blobs read and written about 35% faster than fread/fwrite, about 5× faster on Windows reads and about 10× when every write fsyncs. sqlite.org serves 400,000–500,000 HTTP requests per day on a shared VM below 0.1 load, and whentouse.html treats under 100K hits/day as a floor it has demonstrated at ten times that.
Frente al sistema de archivos gana con claridad: blobs de 10 KB leídos y escritos cerca de 35% más rápido que fread/fwrite, unas 5× en lecturas sobre Windows y unas 10× cuando cada escritura hace fsync. sqlite.org atiende 400.000–500.000 peticiones diarias en una VM compartida con carga por debajo de 0,1, y whentouse.html toma las 100K visitas diarias como piso demostrado a diez veces esa cifra.
A 2026 benchmark on an Apple M2 Pro, single socket, mixed 80/20 read/write, measured 96,051 ops/s against Postgres’s 11,824 — 8.1× — with p50 of 0.023 ms against 0.096 ms. Postgres reached 35,370 ops/s at 16 connections. That is per-query latency and single-writer throughput versus aggregate concurrent-writer throughput; Headscale’s coordination server stalled for hours under hundreds of writers. Batch writes, BEGIN IMMEDIATE, busy_timeout, one writer.
Un benchmark de 2026 en un M2 Pro, un solo socket y mezcla 80/20, midió 96.051 ops/s frente a 11.824 de Postgres —8,1×— con p50 de 0,023 ms frente a 0,096 ms. Postgres llegó a 35.370 ops/s con 16 conexiones. Es latencia por consulta y throughput de un escritor frente al agregado; el servidor de coordinación de Headscale se bloqueó horas con cientos de escritores. Escrituras por lotes, BEGIN IMMEDIATE, busy_timeout, un solo escritor.
Deployment Reality
La realidad del despliegue
Litestream v0.5.0 (October 2025) traded WAL-segment shipping for LTX and multi-level compaction at 30 seconds, 5 minutes and 1 hour, so a restore touches about a dozen files; it is CGO-free, takes one replica destination, and dropped Age encryption. Latest: 0.5.17 (2026-08-31). LiteFS remains pre-1.0 and outside Fly’s support scope; LiteFS Cloud was retired on 2024-10-15.
Litestream v0.5.0 (octubre de 2025) cambió el envío de segmentos WAL por LTX y compactación multinivel a 30 segundos, 5 minutos y 1 hora, así que una restauración toca una docena de archivos; es CGO-free, admite un destino por base y eliminó el cifrado Age. La última es 0.5.17 (2026-08-31). LiteFS sigue en pre-1.0 y fuera del soporte de Fly; LiteFS Cloud se retiró el 2024-10-15.
D1 went GA on 2024-04-01 and added read replication in public beta on 2025-04-10: Sessions API, bookmarks, 10 GB per database, 30-day Time Travel, FTS5 and JSON1 only. Turso Database is a Rust rewrite (“Project Limbo”, MIT, beta) tracking 3.50.4 while adding MVCC BEGIN CONCURRENT, vector/FTS/CDC and io_uring; its MVCC mode cannot create indexes yet. WASM has opfs, opfs-sahpool, and opfs-wl since 3.53.0, which needs Atomics.waitAsync.
D1 llegó a GA el 2024-04-01 y sumó replicación de lectura en beta pública el 2025-04-10: Sessions API, bookmarks, 10 GB por base, Time Travel de 30 días, solo FTS5 y JSON1. Turso Database es una reescritura en Rust (“Project Limbo”, MIT, beta) que busca compatibilidad con 3.50.4 y suma MVCC BEGIN CONCURRENT, vector/FTS/CDC e io_uring; su MVCC aún no crea índices. En WASM hay opfs, opfs-sahpool y opfs-wl desde 3.53.0, que exige Atomics.waitAsync.
Watch three things: whether MVCC reaches trunk, whether D1 and LiteFS keep third-party replication viable, and whether the planner stops producing wrong answers. The LTS page says to “plan as if we will support SQLite through 2050”, with backwards compatibility for the C API and the on-disk format, with patches only for the latest version.
Tres cosas que vigilar: si MVCC llega a trunk, si D1 y LiteFS mantienen viable la replicación de terceros y si el planificador deja de fallar. La página de LTS pide “planificar como si fuéramos a soportar SQLite hasta 2050”, con compatibilidad hacia atrás para la API C y el formato en disco y parches solo para la última versión.
References
Referencias
- SQLite. Release History Of SQLite. sqlite.org/changes.html
- SQLite. Write-Ahead Logging (see §11 on the WAL-reset bug). sqlite.org/wal.html
- SQLite. PRAGMA Statements — journal_mode. sqlite.org/pragma.html
- SQLite. Wal2 Mode Notes (branch documentation). sqlite.org/src/doc/wal2
- SQLite. Begin Concurrent (branch documentation). sqlite.org/src/doc/begin-concurrent
- SQLite. Hctree: experimental high-concurrency backend. sqlite.org/hctree
- SQLite. The Next-Generation Query Planner. sqlite.org/queryplanner-ng.html
- SQLite. How SQLite Is Tested. sqlite.org/testing.html
- SQLite. Long Term Support. sqlite.org/lts.html
- SQLite. Appropriate Uses For SQLite. sqlite.org/whentouse.html
- SQLite. 35% Faster Than The Filesystem. sqlite.org/fasterthanfs.html
- andrecasal. SQLite vs PostgreSQL write-throughput benchmark. GitHub
- Litestream. Litestream v0.5.0 is here. fly.io
- Turso. Turso Database — Rust rewrite of SQLite. GitHub
- SQLite. Historial de versiones de SQLite. sqlite.org/changes.html
- SQLite. Write-Ahead Logging (ver §11 sobre el bug de WAL-reset). sqlite.org/wal.html
- SQLite. Sentencias PRAGMA — journal_mode. sqlite.org/pragma.html
- SQLite. Notas del modo Wal2 (documentación de rama). sqlite.org/src/doc/wal2
- SQLite. Begin Concurrent (documentación de rama). sqlite.org/src/doc/begin-concurrent
- SQLite. Hctree: backend experimental de alta concurrencia. sqlite.org/hctree
- SQLite. El planificador de consultas de nueva generación. sqlite.org/queryplanner-ng.html
- SQLite. Cómo se prueba SQLite. sqlite.org/testing.html
- SQLite. Soporte a largo plazo. sqlite.org/lts.html
- SQLite. Usos apropiados de SQLite. sqlite.org/whentouse.html
- SQLite. 35% más rápido que el sistema de archivos. sqlite.org/fasterthanfs.html
- andrecasal. Benchmark de throughput de escritura: SQLite vs PostgreSQL. GitHub
- Litestream. Ya está aquí Litestream v0.5.0. fly.io
- Turso. Turso Database — reescritura de SQLite en Rust. GitHub