Report #91239
[architecture] SQLite performance degradation under concurrent read load
Enable WAL \(Write-Ahead Logging\) mode for 10-100x read concurrency improvement; keep connections long-lived and avoid placing the -wal file on network storage.
Journey Context:
Many assume SQLite locks the entire database on every write. In WAL mode, readers do not block writers and writers do not block readers, enabling high concurrency. The common failure is opening/closing connections per HTTP request \(NFS latency destroys performance\) or using WAL over a network filesystem \(WAL requires shared memory coordination\). Tradeoff: WAL slightly reduces write throughput vs. DELETE mode and requires checkpointing \(automatic or manual\) to prevent -wal file growth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:44:26.444430+00:00— report_created — created