---
title: "Streaming secondary indices: incremental, demand-driven index evaluation"
description: "ClickHouse 25.9 introduces streaming secondary indices, which check skip-index entries (minmax, set, bloom filter, vector, text) incrementally as each table granule is about to be read, instead of scanning the whole index before query execution."
url: "https://swe.quest/articles/streaming-secondary-indices-incremental-demand-driven-index-evaluation-41766db7296ee01a"
canonical: "https://clickhouse.com/blog/streaming-secondary-indices"
source: "ClickHouse"
published: "2026-01-12"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 4
tags: ["query-engines","analytics","performance","databases"]
---

# Streaming secondary indices: incremental, demand-driven index evaluation

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-01-12, 4 min read, Deep dive. Original: [https://clickhouse.com/blog/streaming-secondary-indices](https://clickhouse.com/blog/streaming-secondary-indices)

## Summary

ClickHouse 25.9 introduces streaming secondary indices, which check skip-index entries (minmax, set, bloom filter, vector, text) incrementally as each table granule is about to be read, instead of scanning the whole index before query execution. Interleaving index checks with data reads removes the startup delay and lets queries with LIMIT stop both index scanning and granule reads as soon as the result is complete. On a one-billion-row table with a 2.2 GiB bloom filter index, a LIMIT 1 needle lookup dropped from ~10.2s to ~2.5s and peak memory halved. The feature is controlled by the use\_skip\_indexes\_on\_data\_read setting.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- ClickHouse MergeTree granules ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- data skipping indexes
- bloom filters

## Keywords

ClickHouse, ClickHouse 25.9, MergeTree, bloom filter, use\_skip\_indexes\_on\_data\_read

## Related posts

- [How ClickHouse makes Top-N queries faster with granule-level data skipping](https://swe.quest/articles/how-clickhouse-makes-top-n-queries-faster-with-granule-level-data-skipping-c5fa6e048ea4d950.md): ClickHouse · 2026-01-19 · Medium · 9 min read · Query engines, Analytics & OLAP, Performance engineering, Databases
  ClickHouse can now use minmax data-skipping indexes to prune whole granules for ORDER BY … LIMIT N queries before reading any rows.
- [ClickHouse Release 25.9](https://swe.quest/articles/clickhouse-release-25-9-512577de2ea7d4de.md): ClickHouse · 2025-10-02 · Medium · 10 min read · Query engines, Analytics & OLAP, Performance engineering, Search, SQL
  ClickHouse 25.9 adds automatic global join reordering, which uses a greedy algorithm plus row-count estimates or manually created column statistics to pick build/probe order across many tables.
- [ClickHouse Release 25.12](https://swe.quest/articles/clickhouse-release-25-12-e571148b4347f1f0.md): ClickHouse · 2026-01-14 · Hard · 18 min read · Query engines, Analytics & OLAP, Performance engineering, Databases
  ClickHouse 25.12 ships 26 features, 31 performance optimizations and 129 bug fixes, led by three query-engine speedups.
- [Index-based pruning in ClickHouse](https://swe.quest/articles/index-based-pruning-in-clickhouse-5952b67ba993450d.md): ClickHouse · 2026-04-15 · Medium · 21 min read · Analytics & OLAP, Query engines, Storage engines, Performance engineering
  ClickHouse offers three index-based ways to skip data: the sparse primary index (one entry per 8,192-row granule), lightweight projections that store only a sort key plus a \_part\_offset pointer into the base table, and skip indexes such as minmax that keep per-granule min/max values.
- [ClickHouse projections now behave like true secondary indexes](https://swe.quest/articles/clickhouse-projections-now-behave-like-true-secondary-indexes-0baa9f93cd285ce3.md): ClickHouse · 2026-01-13 · Medium · 6 min read · Analytics & OLAP, Query engines, Storage engines, Performance engineering
  ClickHouse lightweight projections, which store only a sorting key plus a \_part\_offset pointer into the base table, now act as true secondary indexes with granule-level pruning instead of only pruning whole parts.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
