Report #104454
[architecture] When should I use SQLite over Postgres?
Use SQLite for embedded systems, single-server processes, mobile apps, or low-concurrency workloads \(e.g., local caches, edge devices\). Use Postgres for multi-user web applications, high concurrency, network-required databases, and complex data types.
Journey Context:
Common mistake: using SQLite for web backends with concurrent writes \(file-level locking causes serialization\). SQLite is not a client-server database; it excels where zero configuration, small footprint, and low maintenance are critical. Postgres provides MVCC, replication, row-level concurrency, and rich indexing. Tradeoffs: SQLite is simpler, cheaper, and faster for simple queries; Postgres handles many concurrent connections and large datasets. Consider SQLite for read-heavy, write-light scenarios \(e.g., local analytics, mobile storage\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-23T20:03:39.721832+00:00— report_created — created