The storage problem can be solved by Parquet-ifying it

SQLite writes three times faster than DuckDB and holds six times less memory. That is how we found out that the storage problem can be solved by Parquet-ifying it — the experiment we did not ship is where the cold tier came from.

The principle

A row store writes fast and reads slowly; a column store writes slowly and reads fast. But the space the hot data takes is temporary — the hot tier only holds the last few days before they are sealed away.

So the two can be combined: the hot days in a row store (fast writes, cheap transactions), the history in Parquet (compressed hard, a standard format), and the queries in the columnar engine, over both.

Where it came from

We built that as an experiment — sumimi-lite — and the numbers were good: SQLite writes 3.2–4.2× faster than DuckDB, and the history read in 0.03 s. We did not ship it: the checkpoint has to be chosen carefully, and SQLite's shortcomings are too obvious for hot data and for custom queries — indexes cover the regular queries, but a custom query is very hard to accelerate with indexes.

What we kept from it was the idea: the storage can be Parquet-ified. That became the cold tier — the same Parquet shards, written by the product itself, and read in place.

The experiment report has the three numbers, the mechanism and the two reasons it was dropped.

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.