Reference#

Systems compared, and terms defined.

Glossary#

Primary key#

The column (or combination of columns) that uniquely identifies a row. No two rows can share one.

Foreign key#

A column that points at another table’s primary key, used to link related rows together instead of copying data.

Join#

Combining rows from two or more tables based on a related column, the core operation that makes relational databases useful.

Schema#

The defined structure of a database: what tables exist, what columns they have, and what rules apply to them.

Latency vs. throughput#

Latency is how long one query takes. Throughput is how many queries the system can handle per second. Optimizing for one sometimes costs you the other.

Write-ahead log (WAL)#

A durable log of every change, written before the change is applied, the mechanism most databases use to survive crashes without losing committed data.