ClickHouse Over the Years with Benchmarks
Every ClickHouse release from 1.1.54378 (April 2018) onward was installed on one AWS m5.8xlarge and run through the Star Schema Benchmark, the Brown University benchmark and ClickHouse's own hits benchmark to see how performance changed over time. The setup pulls 328 versions from the old Yandex and new packages.clickhouse.com apt repositories, then exports the hits dataset to CSV with clickhouse-local. Getting the data into old versions meant workarounds for missing features: dropping index_granularity_bytes, replacing LowCardinality with String and IPv4 with String, and splitting DateTime64 into DateTime plus a milliseconds column. Star Schema Benchmark results come with a caveat, since its random value distribution does not resemble real datasets.
Related posts
- ClickHouse Newsletter February 2023: A ‘Sample’ of What’s Happening in the Community
ClickHouse mediumAdept
ClickHouse's SAMPLE BY clause trades exact answers for speed on very large tables, illustrated with a 425-billion-row Wikistat dataset. A full-table monthly average took about 278 seconds. Taking the first million rows was fast but biased, while a table with a hashed sampling key (cityHash64(path)) placed first in the ORDER BY answered from a 1% sample in about 6 seconds with reasonable accuracy. Sums must be scaled up by the sampling factor. The newsletter also lists upcoming webinars and meetups, recaps 23.1 features (experimental inverted indices, parameterized views, query result cache) and links recent blog posts.
- How we made ClickStack 5x faster for ClickHouse observability
ClickHouse hardMaster
ClickStack's OpenTelemetry logs schema, inherited from the ClickHouse exporter for the OTel Collector, was reworked through a benchmark-driven process. The changes combined time-bucketed primary key redesign, text indexes, query rewrites, materialized views and newer ClickHouse features, cutting representative observability query latency by more than 5×. Every schema iteration was validated with the ClickCannon tool and ephemeral ClickHouse Cloud instances at 640 MiB/s ingest on three 24-core replicas. Each change was judged against ingestion throughput, CPU, memory, part counts and the full query workload, so a gain on one query pattern could not hide regressions elsewhere.
- ClickHouse and The One Billion Row Challenge
ClickHouse mediumAdept
ClickHouse Local solves the One Billion Row Challenge (min/mean/max temperature per station from a 13GB text file) in about 20 seconds on an 8-core Hetzner VM, versus nearly 3 minutes for the Java baseline. Reading lines with LineAsString and splitting on ';' instead of using the CSV parser cut the time from 27.6s to 19.9s. Loading into a Memory table first, or precomputing aggregates with a Materialized View into an AggregatingMergeTree via a Null engine, makes later queries near-instant but costs 21–26s of load time, so neither beats the single-scan query end to end. ClickHouse SQL using randCanonical and a Box-Muller transform also generates the dataset 6.8x faster than the Java generator.
- What's new in ClickStack - April 2026
ClickHouse mediumAdept
ClickStack's April 2026 release adds alerts driven by arbitrary ClickHouse SQL, so rolling baselines and standard-deviation anomaly checks can be written with window functions and fire when the query returns 1. The default otel_logs schema was redesigned around ClickHouse full-text indexes on attribute map keys/values and lower(Body), with a five-minute bucketed ordering key, improving sample query performance by over 70% at comparable insert cost; versions before 26.2 fall back to bloom_filter indexes. An opt-in companion column flattens attribute maps into key=value arrays so map lookups are rewritten to indexed has() predicates, running 1.4–10x faster. Autocomplete now reads from 15-minute materialized-view rollups instead of scanning live tables, and heatmaps become a general chart type.
- Comparing ClickHouse versions with clickhousectl
ClickHouse mediumAdept
clickhousectl, ClickHouse's new CLI, can install multiple ClickHouse versions side by side and run them as named local servers with auto-assigned ports, which makes cross-version query benchmarking simple. The walkthrough copies a table schema between servers by piping SHOW CREATE TABLE output in LineAsString format, then copies the data with the remote() table function. Benchmarks on 30M rows of UK price-paid data show DISTINCT over a LowCardinality column dropping from 76ms in 25.12 to 14ms in 26.3. The new Parquet metadata cache in 26.3 cuts repeat S3 Parquet queries from about 9s to 1-2s, and it can be inspected through system.server_settings and system.metrics.