Articles
Database
Short written articles on database concepts for backend developers, in learning order. Each one will teach a concept on its own, with related videos beside it once both exist. Topics without an article yet are shown as coming soon.
Learning map
Topics in learning order. Coming soon items are not links yet; read and in-progress states appear in this browser once you start an article.
- 1The relational model and the SQL a backend developer actually writes
- 2Keys, constraints and normalization
- 3Indexes: B-tree, composite, covering, and why an index isn't used (coming soon)
- 4Reading query plans with EXPLAIN (coming soon)
- 5Transactions and ACID (coming soon)
- 6Isolation levels and anomalies (coming soon)
- 7Locking: optimistic (version column, 412 on mismatch) vs pessimistic, deadlocks, preventing oversell (coming soon)
- 8Choosing a concurrency strategy per use case (optimistic, pessimistic, distributed lock) (coming soon)
- 9ORM concepts: persistence context, dirty checking, lazy vs eager, N+1, batching (concept level; Hibernate/JPA lives on SpringUniverse) (coming soon)
- 10Connection pools (coming soon)
- 11Versioned schema migrations (Flyway) and zero-downtime changes (coming soon)
- 12Pagination: offset vs cursor/keyset, whitelisted sorting, sparse fields (coming soon)
- 13Soft delete (coming soon)
- 14Multi-tenant data: tenant_id on every query, no unscoped reads, why cross-tenant reads return 404 (coming soon)
- 15PostgreSQL row-level security as defence-in-depth (coming soon)
- 16Tenant backfill: adding tenant_id to existing data safely (coming soon)
- 17Outbox table mechanics (the pattern lives on System Design) (coming soon)
- 18Integration testing against a real database (Testcontainers) (coming soon)
- 19Logical replication as the basis for change data capture (CDC as a pattern lives on System Design) (coming soon)
- 20Redis as cache and coordination store; caching and consistency (coming soon)
- 21Replication, read replicas, partitioning and sharding basics (coming soon)
- 22NoSQL families and when to choose them (coming soon)
Curriculum
Season 1: Foundations
- The relational model and the SQL a backend developer actually writesA relational database stores facts in tables, linked by shared ids. We build the shop used across this channel, then write the queries a backend developer needs most: joins, aggregates and subqueries.
- Keys, constraints and normalizationPrimary and foreign keys, NOT NULL, UNIQUE and CHECK, and normalization so that every fact is stored once. We continue with the online shop from the previous article.
- Indexes: B-tree, composite, covering, and why an index isn't usedComing soon (not yet published)
- Reading query plans with EXPLAINComing soon (not yet published)
Season 2: Correctness under concurrency
- Transactions and ACIDComing soon (not yet published)
- Isolation levels and anomaliesComing soon (not yet published)
- Locking: optimistic (version column, 412 on mismatch) vs pessimistic, deadlocks, preventing oversellComing soon (not yet published)
- Choosing a concurrency strategy per use case (optimistic, pessimistic, distributed lock)Coming soon (not yet published)
Season 3: The application beside the database
- ORM concepts: persistence context, dirty checking, lazy vs eager, N+1, batching (concept level; Hibernate/JPA lives on SpringUniverse)Coming soon (not yet published)
- Connection poolsComing soon (not yet published)
- Versioned schema migrations (Flyway) and zero-downtime changesComing soon (not yet published)
- Pagination: offset vs cursor/keyset, whitelisted sorting, sparse fieldsComing soon (not yet published)
- Soft deleteComing soon (not yet published)
- Multi-tenant data: tenant_id on every query, no unscoped reads, why cross-tenant reads return 404Coming soon (not yet published)
- PostgreSQL row-level security as defence-in-depthComing soon (not yet published)
- Tenant backfill: adding tenant_id to existing data safelyComing soon (not yet published)
- Outbox table mechanics (the pattern lives on System Design)Coming soon (not yet published)
- Integration testing against a real database (Testcontainers)Coming soon (not yet published)
Season 4: Scale
- Logical replication as the basis for change data capture (CDC as a pattern lives on System Design)Coming soon (not yet published)
- Redis as cache and coordination store; caching and consistencyComing soon (not yet published)
- Replication, read replicas, partitioning and sharding basicsComing soon (not yet published)
- NoSQL families and when to choose themComing soon (not yet published)
Topic map
The Database terms these 2 articles use most, and where each one comes up along the learning path. Columns follow the article numbers above; a darker cell means more mentions. Select a term to search for it.
| Term | 1. The relational model and the SQL a backend developer actually writes | 2. Keys, constraints and normalization |
|---|---|---|
| tables | 24 | 5 |
| column | 13 | 12 |
| primary key | 1 | 5 |
| constraint | 1 | 5 |
| join | 30 | none |
| left join | 8 | none |
| aggregate | 6 | none |
| foreign key | none | 6 |
| normal forms | none | 6 |
| inner join | 5 | none |
| subquery | 4 | none |
| relationship | 2 | none |
| natural key | none | 2 |
| materialized view | none | 2 |
| aliases | 1 | none |
| surrogate key | none | 1 |

