Comparing ClickHouse versions with clickhousectl
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.
Related posts
- A Deep Dive into Apache Parquet with ClickHouse - Part 1
ClickHouse mediumAdept
ClickHouse can read and write Apache Parquet through its file and s3 table functions, using the same Parquet code in ClickHouse Local and ClickHouse Server. Examples on a 28M-row UK house price dataset show schema inspection with DESCRIBE and aggregation queries over local files, S3 objects and glob-matched file sets. Writes can go through INSERT INTO FUNCTION, INTO OUTFILE or FORMAT Parquet redirection, and PARTITION BY splits output into one file per year. INSERT INTO FUNCTION produces smaller files (243MB vs 291MB) than the client-side approaches, so it is recommended where possible.
- ClickHouse Release 24.10
ClickHouse mediumAdept
ClickHouse 24.10 adds a `--copy` mode and an `--implicit-select` calculator mode to clickhouse-local, a CLONE AS clause, real-time query metrics in the client, and a filesystem cache for S3 and Azure files. CLONE AS makes near-instant table copies by hard-linking immutable data parts, so the copy uses no extra storage and the two tables can then diverge independently. The remote file cache keys entries by path plus ETag, caches only the columns a query touches and evicts with LRU. In the example query it cut S3 GetObject calls from 186 to 0 and S3 read time from 16s to 122ms. Refreshable Materialized Views are now production-ready with Replicated database support, and the rewritten MongoDB integration supports all MongoDB data types and pushes down WHERE and ORDER BY.
- ClickHouse Over the Years with Benchmarks
ClickHouse mediumAdept
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.
- TimescaleDB to ClickHouse replication: Use cases, features, and how we built it
ClickHouse mediumAdept
ClickPipes' Postgres CDC connector, built on PeerDB, now replicates TimescaleDB hypertables into ClickHouse for one-time migrations, staged migrations, or running both databases side by side. Hypertables do not support publish_via_partition_root, so the connector looks up each chunk's parent hypertable itself. It captures new chunks by adding the _timescaledb_internal schema to the Postgres publication. Compressed hypertables reject ctid-based parallel snapshotting, so the connector detects this case and falls back to a single-threaded load that uses cursors and Avro+Zstd.
- ClickHouse 22.3 LTS Released
ClickHouse mediumAdept
ClickHouse 22.3 is a long-term support release (supported through March 2023) focused on maturity and reliability. ClickHouse Keeper, a Jepsen-tested drop-in ZooKeeper replacement, is now production ready. So are AArch64 builds, which already give better price/performance in major clouds, and MergeTree/ReplicatedMergeTree on S3, though zero-copy replication is not yet ready and GCP has known issues. The release also adds reproducible hermetic builds, X.509 authentication, more fuzzing with randomized settings and backward-compatibility tests, and an experimental JSON type that stores inferred dynamic subcolumns in columnar form. Other changes include up to 2x faster MergeTree inserts, up to 3x faster large IN lists, and a hybrid RAM/disk cache for remote filesystems.