Report #85847
[architecture] SQLite database locked errors under concurrent read load
Enable WAL mode \(PRAGMA journal\_mode=WAL\) to allow readers to proceed without blocking on writers
Journey Context:
The default DELETE journal mode requires a reserved lock during writes, blocking all readers. Write-Ahead Logging \(WAL\) appends changes to a separate -wal file, allowing readers to access a consistent snapshot of the main database without locking. This enables concurrent read scaling comparable to client/server databases for single-node deployments, though it requires periodic checkpointing to prevent -wal file bloat and does not support multiple concurrent writers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:41:07.536176+00:00— report_created — created