Home / Companies / ClickHouse / Blog / Post Details
Content Deep Dive

Streaming secondary indices: incremental, demand-driven index evaluation

Blog post from ClickHouse

Post Details
Company
Date Published
Author
Tom
Word Count
938
Company Posts That Month
32
Language
English
Hacker News Points
-
Post removed?
No
Summary

ClickHouse's introduction of streaming secondary indices in version 25.9 marks a significant improvement in query execution by interleaving index evaluation with data reads, as opposed to the previous method of fully scanning secondary indices before query execution. This change allows for incremental and demand-driven index evaluation, reducing latency and memory usage. Previously, secondary indices were scanned upfront to determine which granules might contain matching rows, but this process could lead to inefficiencies, particularly with highly selective queries or those with LIMIT clauses. The new approach concurrently checks index entries and reads data, halting both processes as soon as the query's requirements are met, which eliminates unnecessary work and startup delays. Demonstrations on large datasets showed that using streaming indices can significantly speed up query execution and reduce memory usage, especially for queries that can terminate early due to LIMIT conditions.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 10 4,546 943 215 -38%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.