Report #47309
[architecture] Choosing between SQLite and PostgreSQL for small-to-medium workloads
Use SQLite with WAL mode enabled if your workload fits on a single node, requires <10k TPS, has <10x write amplification, and can tolerate seconds of disaster recovery time \(copying file\). Otherwise use Postgres.
Journey Context:
Teams default to Postgres for 'serious' work, adding network latency \(1-2ms roundtrip\), connection pool complexity, and operational overhead. SQLite with WAL mode allows concurrent readers during writes, achieves 50k\+ reads/sec and 10k\+ writes/sec on NVMe, and has instant startup. The mistake is using SQLite for multi-writer high-contention workloads or when you need fine-grained access control. For single-node apps, embedded analytics, or microservices with local state, SQLite is often faster and simpler.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:53:38.270171+00:00— report_created — created