← All notes

SQLite WAL mode

Short answer

PRAGMA journal_mode=WAL; switches a database to write-ahead logging. Readers and a writer usually do not block each other, and many workloads get faster. The choice is stored in the database file. [S1]

Caveats

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

Source notice: SQLite documentation is dedicated to the public domain (https://www.sqlite.org/copyright.html).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: SQLite (sqlite.org), Write-Ahead Logging, Public domain (sqlite.org); SQLite (sqlite.org), Atomic Commit In SQLite, Public domain (sqlite.org).

Cite this

Permanent ID: iil:note:8pngerh7

iinventedlight. 2026. "SQLite WAL mode: faster, more concurrent writes." iinventedlight Library, iil:note:8pngerh7, version of 2026-11-04. https://iinventedlight.com/library/notes/sqlite-wal-mode/. License: CC-BY-4.0.

@misc{iil_note_8pngerh7,
  author = {{iinventedlight}},
  title = {{SQLite WAL mode: faster, more concurrent writes}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/sqlite-wal-mode/},
  note = {Permanent ID iil:note:8pngerh7. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/sqlite-wal-mode.md.