Real-Time OLAP Dashboards with ClickHouse versus PostgreSQL

How much faster does a column store answer a web-analytics dashboard than a row store, and what does it cost? The same ClickBench web events (anonymised Yandex.Metrica hits) are loaded from the same CSV files into PostgreSQL 18.7 (row store with B-tree indexes) and ClickHouse 26.8.41.14 (column store) at 4 sizes from 1.0 M to 16.0 M events. Ten dashboard panels - hourly events, daily views and visitors, top pages and search phrases, traffic sources, device mix, a visitor funnel, response-time percentiles and a visitor drill-down - run on both engines cold and warm, alone and as a whole dashboard refresh; bulk and micro-batch ingest, storage and server memory are measured and the answers are compared row by row.

NOTE: ClickBench 'hits' web-analytics events (anonymised, not shipped; SHA-256 recorded); both database servers and the application ran on one standard laptop on 127.0.0.1 - PostgreSQL as a Windows process, ClickHouse as the official Linux server inside WSL 2; no cluster; operating-system file caches warm.

Category: Big Data

Big Data Project BD04 from ProTechSC Academy, with graphical abstract, video demonstration and project guidance.