Report #104712
[architecture] When should I use SQLite instead of PostgreSQL?
Use SQLite for embedded databases, single-user applications, read-heavy workloads with low concurrency, and prototypes. Use Postgres for multi-user, concurrent writes, high availability, and complex queries.
Journey Context:
Common mistake: assuming SQLite can't handle production. SQLite is excellent for mobile, desktop apps, IoT, and small web services with low write concurrency \(e.g., a single server with a few connections\). It has no network overhead, zero configuration, and fast reads. However, it lacks concurrency for many writers \(WAL mode helps but not for high contention\), no built-in replication, and limited ALTER TABLE capabilities. Postgres is the default for most web apps. SQLite is also great for testing and CI/CD.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-10-04T20:03:02.899685+00:00— report_created — created