The Runtime Theory
medium · 4h · 10 steps

Database Internals: Indexes, Transactions, and Plans

Learn how indexes narrow work, MVCC shapes visibility, and query plans execute relational operations.

Curriculum (10 steps)

1

A database index is an auxiliary structure that helps find rows without scanning every table page.

Start→
2

An interactive concept flow for how a b-tree index narrows a database search, from its assumptions through the main operation and boundary checks.

Start→
3

Follow the key state changes and boundary checks involved in how a b-tree index narrows a database search.

Start→
4

Use EXPLAIN to predict scans and joins, then compare row estimates with execution observations on a safe SELECT query.

Start→
5

A query planner estimates alternative ways to produce a result and chooses one using statistics and cost assumptions.

Start→
6

An interactive concept flow for reading a query plan as an execution hypothesis, from its assumptions through the main operation and boundary checks.

Start→
7

Follow the key state changes and boundary checks involved in reading a query plan as an execution hypothesis.

Start→
8

A transaction groups operations under a database contract such as atomicity and consistency.

Start→
9

Follow the key state changes and boundary checks involved in transactions, isolation, and mvcc snapshots.

Start→
10

Explain the model, execution steps, complexity, and limits of transactions, isolation, and mvcc snapshots.

Start→