Systems
Databases
Relational databases from the ground up — the relational model, SQL from basics to window functions, normalisation, B+tree indexes, transactions and isolation levels, MVCC, query planning — and then NoSQL, replication and sharding.
4 modules 14 lessons ~1 h of reading
Start learning
0/14 completed
01
Relational Model & SQL
5 lessons- 1The Relational ModelTables, rows and columns as relations; keys (primary, candidate, foreign); integrity constraints; relational algebra; and why the relational model has lasted 50 years.beginner4 min
- 2SQL BasicsCreate tables and write queries — SELECT, WHERE, ORDER BY, LIMIT, aggregates and GROUP BY/HAVING, INSERT/UPDATE/DELETE, NULL semantics and logical query order.beginner3 min
- 3SQL JoinsInner, left, right, full outer, cross and self joins with visual examples; joining on multiple tables; semi- and anti-joins with EXISTS; and common join mistakes.beginner3 min
- 4Advanced SQLSubqueries, CTEs and recursive CTEs, window functions (ROW_NUMBER, RANK, LAG, running totals), CASE, set operations, views, JSON and the classic interview queries.intermediate2 min
- 5Normalization & Schema DesignFunctional dependencies, update anomalies, 1NF through BCNF with worked examples, when to denormalise, and practical schema design advice.intermediate4 min
02
Internals
3 lessons- 6Storage EnginesHow databases store data on disk — pages and heap files, the buffer pool, write-ahead logging, B-tree vs LSM-tree engines, and row vs column storage.advanced4 min
- 7IndexingHow database indexes work — B+ tree and hash indexes, clustered vs secondary, composite indexes and the leftmost-prefix rule, covering indexes, selectivity, and when indexes hurt.intermediate5 min
- 8Query Processing & OptimizationHow a SQL query is parsed, rewritten, planned and executed — cost-based optimisation, statistics, join ordering, reading EXPLAIN plans, and practical tuning.advanced4 min
03
Transactions
3 lessons- 9Transactions & ACIDWhat a transaction is, the four ACID properties and how databases implement each, commit and rollback, savepoints, and using transactions correctly from application code.intermediate3 min
- 10Isolation LevelsDirty reads, non-repeatable reads, phantoms, lost updates and write skew; the SQL isolation levels and what PostgreSQL and MySQL really do; snapshot isolation and serializability.advanced4 min
- 11Concurrency ControlHow databases implement isolation — two-phase locking, lock types and granularity, MVCC, optimistic concurrency control, serializable snapshot isolation, and deadlock handling.advanced4 min
04
Beyond a Single Node
3 lessons- 12NoSQL DatabasesKey-value, document, wide-column, graph, time-series, search and vector databases — data models, strengths, trade-offs, and how to choose between SQL and NoSQL.intermediate3 min
- 13ReplicationCopying data across machines for availability and read scaling — leader–follower, multi-leader and leaderless replication; synchronous vs asynchronous; replication lag and its anomalies; failover.advanced5 min
- 14Sharding & PartitioningSplitting data across tables and machines — vertical vs horizontal partitioning, range, hash and directory-based sharding, choosing a shard key, hot spots, rebalancing, and cross-shard queries.advanced5 min