The shape is written once

The same rows must live in DuckDB, SQLite, PostgreSQL and ClickHouse, and the reports must give the same answers on all four. That works because the shape is written once and each engine fills in one line of it.

The principle

The schema, the write path, the read path, the migration and the cold tier are written once, in the open-source edition. Each engine contributes one thing: how that engine spells a column.

the enginethe three property columns
DuckDBMAP(VARCHAR, …)
SQLiteTEXT (a JSON object)
PostgreSQLJSONB
ClickHouseMap(String, …) CODEC(ZSTD(3))

What it buys

The numbers are the same on all four engines — the conformance tests prove it, row by row. And because the shape is shared, moving a customer from DuckDB to ClickHouse is a change of backend, not a rewrite: the same schema, the same reports, the same numbers.

What it costs

One shape has to serve four engines, so it cannot be the richest shape any of them could hold. PostgreSQL's property columns are JSONB, and JSONB drops the value's type and cannot use its index to compare values — that is PostgreSQL's price, and it is written down rather than hidden.

The experiment report has the four backends side by side, with what each one costs.

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.