v.21.6New Feature
Add 'indexes' Setting to 'EXPLAIN PIPELINE' Query for MergeTree Tables
Add settingindexes(boolean, disabled by default) toEXPLAIN PIPELINEquery. When enabled, shows used indexes, number of filtered parts and granules for every index applied. Supported forMergeTree*tables. #22352 (Nikolai Kochetov).
Why it matters
This feature helps users better understand the indexing behavior during query execution by revealing which indexes are applied and how many data parts and granules are filtered. It provides valuable insights for optimizing queries onMergeTree* tables.How to use it
To use this feature, enable theindexes setting by adding it to your EXPLAIN PIPELINE query like this:EXPLAIN PIPELINE SETTINGS indexes = 1
SELECT ... FROM merge_tree_tableThis will output the indexes used along with the statistics on filtered parts and granules.