What each one is: a key detail — essentially a design and experiment report. one decision · its mechanism · the measured numbers · the loss
And the division of the work (the owner, 2026-12-05). the blog holds the experiment reports (this pile). the principles are explained in docs/ (later). so the six design principles below are what goes to docs/. the retrospectives quote them; the documentation unfolds them
The thread: three goals, four priorities
The three goals (the owner's own words):
- Storage taken as far as it goes — so that a small VPS's disk can sit
there for years without the service stopping for lack of disk
- Query speed taken as far as it goes — so that the VPS never takes so
long to answer that a fetch times out and the data comes back incomplete
- Peace of mind — backups and rotation
The four directions are priorities for designing and measuring (the owner's correction, 2026-12-05: not a table of what beats what). storage → memory must not explode → write speed → query speed
With those three goals as the axis, we have been optimizing from 0.1.0 onwards. and at the end, on the same dataset · the same collection level: what we are against umami · what we reach against plausible / ClickHouse
The articles
| # | article | what it answers |
|---|---|---|
| 01 | What a sort key is worth | We lost to ClickHouse on disk, and the cause was not the engine — it was the key — and the same key is worth 8.5% in Parquet and 1.6% in DuckDB's own storage; plus: a quarter of the hot tier's blocks are dead, and the cold tier's trade (58% less storage, 2.5× slower queries) |
| 02 | DuckDB's compression knobs | A per-column method never beat the engine's own choice (all 51 columns) — and the unit of a timestamp is the lever (truncating the values saves nothing) |
| 03 | DuckDB against PostgreSQL | The engine is worth more than the tuning: 67× smaller than umami, 22× smaller than our own PostgreSQL backend |
| 04 | Version by version | Each release moved one thing, measured it first, and wrote down the loss too — v0.5's trade → v0.6's ids (the row −63%) → v0.7's properties (−97.3%) → v0.8's key → v0.9's indexes |
| 05 | After the migration | Three levers decide what a migrated database weighs: the shape +165 MB · the ids −217 MB · the row order −130 MB |
| 06 | Where the properties live | Four stories inside one decision: the EAV table · why the wide table is a map · why three types of map · the 0–3 bit of has-props and the mask we keep empty |
| 07 | Why four backends | Four backends is not a menu: two core lines (the move is a change of backend, not a rewrite) + two accommodations (PG 21.9× · SQLite's reads 15× slower) |
| 08 | SQLite writes fast and uses less memory — and we still gave up the sumimi-lite plan | The report of that experiment: three numbers · the mechanism (the export is the checkpoint) · the two reasons it was dropped · and it became the cold tier |
Not written yet (the list is in our issue tracker): write speed (batch commits · sorting moved later) · query acceleration (v0.9.0's key: external indexes) · the milestone summary (when v0.9.x has matured) · separating the collector from the analyser (the possibility we kept room for)
The rules these articles keep
- Everything is measured before it is built. **what we cannot measure,
we do not build**
- The losses go in too. v0.7's property filter (0.6 → 6.5 ms) · the
cold tier's trade (storage for query time). a version that only lists its wins is not a measurement
- Sizes are not comparable across versions. each version compares
only its own before and after
- One thing per article. one decision, one story. **which is
why they are separate articles**
- Before publishing, the facts are checked again. **what the code
looks like now · the numbers in the issue · and anything that has drifted is marked. we have built a lot of things, and some of it has drifted. these articles are the layer that pins the cognition down. not marketing**
The design principles they share (for the later retrospectives to quote)
| the principle | where it comes from | |
|---|---|---|
| ① | Order is the lever on compression — related things are densely packed, so a key is the cheapest thing in a database to change | 01 |
| ② | The storage does not bend to the analysis demands — because the analysis demands diverge. serve them with indexes (an index sits beside the data; it does not change the data) | 04 |
| ③ | The shape is written once — every engine fills in its own spelling. so the migration is a change of backend, not a rewrite | 06 · 07 |
| ④ | The columnar's dividend comes from append-only data. and we pay for the flexibility we do not use | 07 |
| ⑤ | The storage problem can be solved by Parquet-ifying it — the hot copy is temporary. and the sorting happens later, when the cold tier is built | 08 · 01 |
| ⑥ | The unit of a timestamp is the lever; the precision of its values is not | 02 |
Those six are what this pile of articles argues. so the later retrospectives quote them instead of retelling every story. and they are the skeleton of the principle pages in docs/
The rules about the numbers (every article obeys them)
- Each article's numbers were measured in its own round. sizes are not comparable across articles. and every article carries its own "the boundaries of these numbers"
- The tools are private (our rule: the benchmark code stays private; the result does not have to). the results and the raw output are in the public repository's
benchmarks - The scoreboard is in the scoreboard. every number these articles quote can be checked there