Everything here is reference material. Unlike Core concepts,
it is not meant to be read front to back — each group answers a question you
will eventually have, and is best read when you actually have it.Reach for these when something is slow, or before it is.Query optimization — A query is slow and you need to see the plan, add hints, or batch work. Caching — The same read happens repeatedly and the data changes rarely. Streams — A result set does not fit in memory — exports, backfills, migrations. Replication — Reads should go to a replica and writes to the primary. Schema#
Working with the shape of the database rather than its contents.SQL features — You need generated or identity columns, exclusion constraints, index hints, sampling, cursors or table storage settings. Schema diffing — You want to know how the live schema differs from your models. Types and extensibility#
pipe() and Q — You build the same FindOptions from optional parts and want to compose rather than mutate.Query safety — A query threw UnsupportedWhereError and you want to know what the guard refuses and why. Architecture — You want the map of how a model call reaches a connection. SQL constants — You need session settings: isolation, pragmas, sql_mode. Extensions — You want to add behaviour to the ORM itself. SQLite advanced — You want FTS5, window functions, ATTACH or pragma tuning. Operating#
The concerns that show up once something is running in production.Logging — You need to see the SQL, or route it somewhere. Error handling — You need to tell a constraint violation from a connection failure. Compliance — You have GDPR, HIPAA, SOC 2, retention, encryption or residency requirements — a whole section. User management — You are creating roles and granting privileges from code. CLI — You want scaffolding, model generation, migrations, or to inspect and maintain a live database from the command line. Diagrams — You want ER, class or migration diagrams generated from your models. Test gaps — You are contributing and want to know what is deliberately untested. Modified at 2026-10-04 00:40:16