Append-only data is where the column store wins

Our PostgreSQL backend is 22 times larger than our DuckDB one for the same rows. The reason is not a missing feature: event data is append-only, and only a column store can exploit that.

The principle

In a row store, every row carries its own overhead — a header, a null bitmap, alignment — and a value that repeats in a column is stored again and again. In a column store, the repetition is exactly what the compressor eats.

That advantage only exists for data that is append-only. An event table never updates a row and never deletes one (the cold tier takes the old ones away wholesale). So the shape of our data is the shape a column store is built for.

The number

the storeon the diskper view
our DuckDB + cold tier50.8 MB21 B
our ClickHouse65.7 MB27 B
our PostgreSQL1 110.6 MB455 B
umami v3 (PostgreSQL)3 406.0 MB1 396 B

Same rows, same machine, one round. And we are not wasting anything on a general-purpose engine's flexibility — we are paying for the flexibility we do not use.

The experiment report has the comparison, including the write times that PostgreSQL wins.

Sumimi / 数咪咪 is an independent open-source project. It is an open-source alternative to Umami and implements the Umami v2 HTTP API; no Umami assets are used. Licensed under the Apache-2.0 licence. Third-party names are referenced nominatively.