Databases explained
How data is stored so it can be asked questions: rows that meet in a join, and why transactions and analytics want different engines.
Every databases concept
SQL joins
Inner, left, right and full: which rows survive when two tables meet.
OPEN LESSON
OLTP vs OLAP
Why the database that takes orders is not the one that analyses them.
OPEN LESSON
Database normalization (1NF to 3NF)
One repetitive table split into three, one normal form at a time.
OPEN LESSON
Hash indexes
One hash, one bucket, one row: fast exact lookups that cannot do ranges.
OPEN LESSON
Composite indexes
An index on two columns, and why the order of those columns decides what it can do.
OPEN LESSON
Transaction isolation levels
Four levels that decide what one transaction may see of another’s work.
OPEN LESSON
Dirty reads, phantom reads and anomalies
Four ways two overlapping transactions can show each other wrong data.
OPEN LESSON
NoSQL databases
Four ways to store data without tables, and what each one trades away.
OPEN LESSON
SQL vs NoSQL
The same order stored both ways, and what each choice costs and buys.
OPEN LESSON
Database replication
Copies of a database kept in step, and what happens when one falls behind.
OPEN LESSON
Connection pooling
Why apps keep database connections open and share them between requests.
OPEN LESSON
Inverted indexes
How search finds every document containing a word without reading them.
OPEN LESSON
Columnar storage (Parquet)
Why storing a table column by column lets a query read less and skip more.
OPEN LESSON
Change data capture
How other systems follow a database by reading its log of changes.
OPEN LESSON
MapReduce
Count words across many machines with map, shuffle and reduce.
OPEN LESSON
Data pipelines and orchestration
A nightly report as a graph of tasks: scheduled, retried and backfilled.
OPEN LESSON
Backups and point-in-time recovery
Rewind a database to the minute before a mistake, using backups and its log.
OPEN LESSON