Topic · 3 posts

SQLite

SQLite is a database that lives inside your app, and it can handle more than most people expect. These posts explain how it locks, how to index it and how to use it for busy sites.

Start here

All SQLite posts

SQLite in Production: Settings for a High-Traffic Website

SQLite in production: the PRAGMA settings, WAL mode, one-writer pattern, checkpoints and Litestream backups for a busy site, and when to pick Postgres.

SQLite Indexes Explained: How to Find and Fix Slow Queries

Learn how SQLite indexes work. Read EXPLAIN QUERY PLAN, then fix a slow query step by step with composite, covering, partial and expression indexes.

SQLite Locking: Why You Get 'database is locked' and How to Fix It

How SQLite locking works, why you get 'database is locked' (SQLITE_BUSY) even with a busy timeout, and how WAL mode and BEGIN IMMEDIATE fix it.

Other topics