← All notes

When SQLite is the right database (and when not)

Short answer

Pick SQLite for local storage inside one app: devices, desktop and mobile apps, files, tests, and low-to-medium traffic sites. Pick a client/server database when many machines write at once over a network. [S1]

Key facts

Rule of thumb: SQLite competes with fopen(), not with PostgreSQL. [S1]

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: SQLite (sqlite.org), Appropriate Uses For SQLite, Public domain (sqlite.org); SQLite (sqlite.org), About SQLite, Public domain (sqlite.org).

Cite this

Permanent ID: iil:note:vvv75e2r

iinventedlight. 2026. "When SQLite is the right database (and when not)." iinventedlight Library, iil:note:vvv75e2r, version of 2026-11-04. https://iinventedlight.com/library/notes/sqlite-when-to-use/. License: CC-BY-4.0.

@misc{iil_note_vvv75e2r,
  author = {{iinventedlight}},
  title = {{When SQLite is the right database (and when not)}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/sqlite-when-to-use/},
  note = {Permanent ID iil:note:vvv75e2r. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/sqlite-when-to-use.md.