stackstash

Postgres vs SQLite

Postgres and SQLite are free.

Open-source relational database. The usual pick when you want real SQL.

Try it

Pros of Postgres

  • Reliable relational database

  • JSON without leaving SQL

  • Free to run yourself

Cons of Postgres

  • You manage backups and upgrades

  • Heavier than SQLite for a tiny app

SQLite logo: A SQL database stored in one file, with no server to run.
SQLite logo: A SQL database stored in one file, with no server to run.

SQLite

Free

A SQL database stored in one file, with no server to run.

Try it

Pros of SQLite

  • Nothing to install beyond the library

  • Easy to copy, back up, or reset in development

  • Drizzle can use it the same way as Postgres

Cons of SQLite

  • One writer at a time is the comfortable limit

  • You outgrow it once you need hosted auth and storage