How to read the decision catalogue
What a design decision entry is, how the catalogue is grouped, and an index from every D-number to its page.
Raft DB keeps a decision log. Each entry records one design decision: what was decided, why, what else was considered and the evidence. A decision is changed by a later entry that supersedes it, never by editing the old one. This chapter is a readable version of that log, grouped by theme instead of by date. The wording is shortened; the numbers (speeds, sizes) belong to the measurements in the log and in the benchmark documents, and the pages here repeat only a few of them.
Entry form#
Every entry has the same D-number as the log, a one-line title, and the decision with its reason. Some numbers are used by more than one log entry: D50 and D51 have follow-up entries for each built step, and they are shown under the main entry. D53 appears in the log as a short paragraph inside D52's section, and has its own entry here. The log is not in numeric order (the early numbers D9, D14 to D17 were written later), which is one more reason to look decisions up by number in the index below.
Reading notes#
- "Owner" in the log means the person who set the direction for the project. This catalogue says "requested" where the log quotes a request.
- "Design only" or "proposed" in a title means the decision was taken before the code existed. The page says when the log marks it so.
- Where a later decision replaced part of an earlier one, the entry says so (D51 replaces where D42 and D50 put the election).
- A decision describes the system at the time it was made. For the current behaviour read the reference chapters first, for example SQL reference, Replication and Internals.
Index#
| Page | Theme | D-numbers |
|---|---|---|
| Foundations | Language, typing, filters, documentation, portability, testing | D1, D5, D6, D7, D8, D9, D13, D16 |
| Storage engine | Memory layout, indexes, checkpoints, the disk-resident engine | D2, D3, D4, D14, D15, D18, D22, D27, D28, D35, D43, D46, D48, D49 |
| Write path and durability | WAL, group commit, threads per core, acknowledgement | D10, D11, D12, D21, D37 |
| Server, protocol and security | Wire protocol, HTTP, UDP, catalog, accounts, Studio | D19, D20, D23, D24, D25, D26, D29, D30, D31, D32, D33, D34, D36, D40 |
| Replication and failover | Log shipping, synchronous mode, Raft, lsm replication | D17, D38, D39, D42, D47 |
| Control plane and partitions | Watcher quorum, fence, resource control, table groups, partitioned tables | D50, D51 |
| MySQL front-end | Connector architecture, accounts, SELECT, ALTER, transactions, functions, foreign keys | D52, D54, D55, D56, D57, D58, D59, D60, D61, D64 |
| MySQL front-end performance | Measurements against MySQL 9.7 and what was changed | D62, D63, D65, D66, D67, D68, D69 |
| MySQL schema features | Views, temporary tables, checks, generated columns, functional indexes | D70, D71, D72, D73, D74, D75, D76, D77, D78 |
| MariaDB and dialects | One program with two dialects, system variables, types, JSON, routines, triggers | D79, D80, D81, D82, D83, D84, D85, D86, D87, D88 |
| Operations and tooling | Zero-flag start, service install, watcher, error reports | D41, D44, D45, D53 |
All of D1 to D88 appear exactly once in the index.