TALLMOVE

Databases & Data

How data is stored, queried, and moved - relational, graph, and the pipelines between.

Databases

Relational Databases: Tables & Keysin review

intro · ~20 min

A database is tables of rows whose keys point at each other: a primary key names a row, a foreign key points at one, and the engine refuses every row that would break a pointer.

B-Trees: How Indexes Workin review

core · ~25 min

An index is a wide, shallow tree with every leaf at one depth: a lookup reads one page per level, an insert splits upward, and the root grows only at the top, so any row is a few reads away.

SQL Joins, Visualizedin review

core · ~25 min

A join pairs the rows of two tables whose keys agree: a nested loop, a hash table, and two sorted runs find the same pairs at three prices, and the outer joins keep the rows nobody matched.

Query Plans: How SQL Executesin review

core · ~25 min

SQL says what, not how: a cost-based planner reads the table statistics, prices every way of scanning and joining in page reads, prunes the dearer plan over the same tables, and runs the cheapest.

Transactions & ACIDin review

core · ~25 min

A transaction is all or nothing and alone in the world. Interleave two transfers and an update is lost; lock what each touches until it ends and the books balance, at the price of the odd deadlock.

WAL: Crash Recoveryin review

core · ~25 min

Write the intention to a log before touching a page, force the log at commit, and after a crash replay what was promised and undo what was not.

LSM Trees: Writing in Layersin review

core · ~25 min

Writes fill a sorted table in memory, full tables flush to disk as immutable runs, runs merge downward in the background, and a read checks the layers newest first.

Graph Databases

Relational Design

Fourth Normal FormFifth Normal FormDenormalization

Pipelines

ETL: Extract, Transform, LoadMapReduce