ClickHouse Input format matchup: Which is fastest & most efficient
FastFormats is a benchmark that measures ClickHouse server-side ingestion time and hardware efficiency across roughly 60 input formats, crossed with batch size, pre-sorting and compression, using the ClickBench web analytics dataset over the HTTP interface. With 10k-row batches and LZ4 compression, the Native format was fastest: 131s for 2.55 GiB. That beat ArrowStream by 10%, RowBinary by 18%, TSV and Parquet by about 31–32%, CSV by 36%, and JSONEachRow by 51%, because its columnar layout closely matches MergeTree. Format choice has the biggest impact, followed by compression, while pre-sorting helps only in specific cases. Native is recommended unless the table DDL uses format-specific MATERIALIZED/DEFAULT expressions.
Related posts
- What really matters for performance: lessons from a year of benchmarks
ClickHouse easyNovice
Six ClickHouse benchmarks from 2025 point to one conclusion: performance depends on how efficiently an engine moves data end-to-end. JSONBench showed columnar JSON storage running orders of magnitude faster than document stores like MongoDB on up to 1B Bluesky events. FastFormats found the Native format, LZ4 compression and large batches matter most for ingestion, and Netflix used those results to reach ~5 PB/day of log ingestion. A distributed cache matched or beat local SSDs on object storage, lightweight SQL UPDATEs ran up to 1,000× faster than mutations, and parallel replicas aggregated 100B rows in ~0.4s.
- ClickHouse and Parquet: A foundation for fast Lakehouse analytics
ClickHouse mediumAdept
ClickHouse queries Parquet files directly, without ingestion, through a format-specific reader that currently parses via Arrow and then converts into ClickHouse's in-memory format. Performance rests on two things: parallelism and I/O reduction. Parallelism comes from prefetch threads, parsing threads, file streams and processing lanes. File streams are computed as min(max_threads, num_files), and parsing threads per file as max(max_parsing_threads / num_files, 1), with EXPLAIN Pipeline examples showing the resulting plans. A third native reader, "Yet Another Parquet Reader", is in development to drop the Arrow layer and improve parallelism and I/O efficiency, and the current reader serves as the benchmark baseline.
- An Introduction to Data Formats in ClickHouse
ClickHouse mediumAdept
ClickHouse can import and export a wide range of formats through the FORMAT clause and related settings. Covered here: CSV and TSV with custom delimiters, CustomSeparated for broken CSVs, JSONEachRow for NDJSON, Regexp and Template for custom text, Native and RowBinary for efficient transfer between servers, Parquet and other Apache formats, and SQLInsert/MySQLDump for SQL dumps. Two practical tricks: the Null format benchmarks queries without printing output, and Pretty* variants control how CLI results are displayed. clickhouse-local with the file() function lets you inspect local files before loading them.
- Why ClickHouse Cloud wins at real-time analytics
ClickHouse mediumAdept
In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless. Its lead comes from sorting data and computing incremental materialized-view pre-aggregations in memory at insert time, so summaries never lag behind raw data. Background part merges then keep combining the mergeable aggregation states. Ingestion and merging are parallelized across nodes, cores and SIMD lanes, and a 4-core ingest service prepared all the data for $28.69 with 14.4× compression, while the other systems needed separate asynchronous refresh stages that lagged and cost $79–$696.
- Top 10 best practices tips for ClickHouse
ClickHouse mediumAdept
Ten practices for getting performance and storage efficiency out of ClickHouse, each measured on a 150M-row Amazon reviews dataset. Aligning ORDER BY with query filters (low-cardinality columns first) made one query 3x faster and cut scanned data 347x. Right-sized types, no Nullable and LowCardinality(String) doubled query speed and shrank storage. Partitioning is best avoided except for TTL expiry or FINAL on merge engines; monthly partitions slowed one aggregation 46x. The post also covers lightweight versus heavyweight skipping indexes, JSON type hints (38% less storage, 26% faster), and preferring Parquet/ORC for bulk ingestion.