Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 4 min read Release mediumAdept

ClickHouse v21.11 Released

ClickHouse 21.11 adds asynchronous inserts, which buffer many small concurrent INSERTs server-side and flush them as a single batch. This removes the need for Kafka or buffer tables in high-rate ingestion, and it is tunable via async_insert, wait_for_async_insert, async_insert_threads, async_insert_max_data_size and async_insert_busy_timeout_ms. The release also brings an interactive clickhouse-local CLI that needs no server, executable UDFs written in any language, named predefined connections to external sources such as MySQL and S3, and automatic compression handling for INTO OUTFILE and FROM INFILE.

Related posts

  • Asynchronous Data Inserts in ClickHouse

    ClickHouse mediumAdept

    ClickHouse asynchronous inserts move batching from the client to the server. Insert data goes into in-memory buffers, one per query shape and settings on each node, and is flushed as larger parts, which avoids the 'Too many parts' error that frequent small synchronous inserts trigger. In a benchmark with a serverless uptime-monitoring app (UpClick), 200 cloud functions inserting every 10 seconds pushed a 3-node ClickHouse Cloud service to the 300-active-part limit within 5 minutes using synchronous inserts. The post then covers buffer flush semantics, deduplication for idempotent retries, errors that only surface at flush time, how asynchronous inserts compare to Buffer tables, and how to tune return behavior and flush settings.

  • Building a Unified Data Platform with ClickHouse

    ClickHouse mediumAdept

    Synq, a data observability startup, consolidated its user-facing application, internal BI, in-app analytics and ML training data onto a single ClickHouse Cloud cluster after Postgres with a time-series plugin struggled with large backfills. Naive per-message inserts from its Go ingestion service caused part explosions and insert timeouts. Buffer tables fixed that but used too much cluster memory, so the team settled on Async Inserts and handled duplicates with ReplacingMergeTree plus LIMIT 1 BY on a surrogate key. Materialized views feeding query-specific tables with ORDER BY keys matched to access patterns cut scanned data by an order of magnitude and keep API latencies around 100ms, while dbt builds auditing and daily-aggregated analytics tables without separate ETL.

  • ClickHouse Release 26.2

    ClickHouse mediumAdept

    ClickHouse 26.2 ships 25 features, 43 performance optimizations and 183 bug fixes, and promotes the text index and QBit vector data type to production-ready. A new input_format_max_block_wait_ms setting, used with input_format_connection_handling, flushes streaming inserts on a time interval rather than block size. RIGHT and FULL OUTER JOINs now generate unmatched right-side rows in parallel, one thread per hash-table bucket, giving a 3.2× speedup (35s to 11s) on a self-join benchmark. Other changes include faster JSON parsing (1.2–2.8×), batched uniq and vectorized minmax index computation on insert, automatic minmax indexes for temporal columns, a primes table function, and the ClickStack UI embedded in the server binary.

  • ClickHouse 22.11 Release

    ClickHouse mediumAdept

    ClickHouse 22.11 ships 15 new features, 5 performance optimisations and 32 bug fixes, headlined by composite time intervals, recursive ** glob patterns, Spark-compatibility functions, INSERT retries and SELECT support for Apache Hudi and Delta Lake. The new insert_keeper_max_retries setting lets long-running inserts survive Keeper/ZooKeeper reconnections by retrying failed blocks instead of failing the whole request, with 5 recommended for most cases. Recursive ** globs, combined with range expansion and set matching in path-accepting table functions such as s3(), allow queries to read only the relevant files. Worked examples over git-import commit data on S3 show this pruning in practice.

  • ClickHouse Release 23.5

    ClickHouse mediumAdept

    ClickHouse 23.5 ships 29 new features, 22 performance optimizations and 85 bug fixes. Highlights are a new azureBlobStorage table function and table engine for reading and writing Azure Blob Storage, and a built-in keeper-client for inspecting ClickHouse Keeper. Parquet reading is faster through fewer mutex locks and out-of-order reading by default, which can be reverted with input_format_parquet_preserve_order; one example query dropped from 0.367s to 0.240s. Geo types and functions and the query results cache are now production ready, and compressed marks and indices on disk are enabled by default.

The quest for software engineering knowledge.

Look:
Layout: