Topic · 67 articles
Databases
Modeling data, indexing it, and keeping writes correct.
Behind almost every backend problem is a data problem. This hub is the broader view across databases: how to model relationships, when an index helps and when it hurts, keeping writes atomic with transactions, optimizing slow queries, and isolating tenants safely in a shared database.
For engine-specific depth, follow it into the PostgreSQL and Redis hubs.
Frequently asked questions
Which databases do these articles cover?
Mostly relational databases with PostgreSQL as the primary example, alongside Redis for caching, plus the modeling, indexing, and transaction principles that apply across SQL engines.
How do I make a slow database query fast?
Start with the schema and indexes, not the query text. The articles cover reading EXPLAIN output, choosing indexes that actually get used, and avoiding N+1 access patterns — the changes that move query time the most.