---
title: "ClickHouse Newsletter May 2022: Explain Statement – Query Optimization"
description: "ClickHouse's May 2022 newsletter centers on using EXPLAIN for query optimization."
url: "https://swe.quest/articles/clickhouse-newsletter-may-2022-explain-statement-query-optimization-a636e0c953208fbf"
canonical: "https://clickhouse.com/blog/clickhouse-newsletter-may-2022-explain-statement-query-optimization"
source: "ClickHouse"
published: "2022-05-09"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["query-engines","analytics","performance","sql"]
---

# ClickHouse Newsletter May 2022: Explain Statement – Query Optimization

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-05-09, 8 min read, Announcement. Original: [https://clickhouse.com/blog/clickhouse-newsletter-may-2022-explain-statement-query-optimization](https://clickhouse.com/blog/clickhouse-newsletter-may-2022-explain-statement-query-optimization)

## Summary

ClickHouse's May 2022 newsletter centers on using EXPLAIN for query optimization. EXPLAIN SYNTAX reveals rewrites such as wildcard expansion and predicate pushdown into subqueries. EXPLAIN PLAN with indexes=1 shows granules read: on a 1-billion-row MergeTree table, sorting by the filtered column lets the primary key prune reads to 1 of 122,071 granules, cutting query time from 0.688s to 0.007s. The newsletter also covers the 22.4 release, which adds experimental transactions, Keeper load balancing, a RocksDB metadata cache that cut startup from 75 minutes to 20 seconds at 700k parts, and WITH FILL INTERPOLATE gap filling, plus upcoming events and revamped docs.

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)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- ClickHouse MergeTree tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, EXPLAIN, MergeTree, ClickHouse Keeper, ClickHouse 22.4, H3

## Related posts

- [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.
- [ClickHouse Release 26.4](https://swe.quest/articles/clickhouse-release-26-4-f4f5532396f893cd.md): ClickHouse · 2026-05-08 · Medium · 10 min read · Analytics & OLAP, SQL, Query engines, Performance engineering
  ClickHouse 26.4 ships 39 features, 45 performance optimizations and 238 bug fixes, led by SQL-compatibility additions: VALUES as a table expression with column aliases, PostgreSQL-style EXTRACT units, SET TIME ZONE, NATURAL JOIN and compound INTERVAL literals.
- [A simple guide to ClickHouse query optimization: part 1](https://swe.quest/articles/a-simple-guide-to-clickhouse-query-optimization-part-1-007f8d8516577455.md): ClickHouse · 2024-12-11 · Medium · 20 min read · Analytics & OLAP, Performance engineering, SQL, Query engines
  Slow ClickHouse queries can be diagnosed with system.query\_log (duration, rows read, memory, CPU, cache metrics) and the EXPLAIN statement, illustrated on the NYC Taxi dataset in the ClickHouse Playground.
- [Super charging your ClickHouse queries](https://swe.quest/articles/super-charging-your-clickhouse-queries-55ad4f3a6c2fa875.md): ClickHouse · 2022-12-15 · Medium · 15 min read · Analytics & OLAP, Performance engineering, Query engines, SQL
  ClickHouse query speed comes mainly from reading less data: a sparse primary index stores one entry per 8192-row granule and lets binary search skip blocks that can't match the WHERE clause.
- [ClickHouse Release 26.6](https://swe.quest/articles/clickhouse-release-26-6-b9d6c69704516f2f.md): ClickHouse · 2026-07-03 · Medium · 13 min read · Analytics & OLAP, Databases, Query engines, SQL
  ClickHouse 26.6 ships 56 features, 79 performance optimizations and 366 bug fixes, marking ten years of ClickHouse as open source.

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)
