Unlock this content

Enter your email to unlock this content for free

By continuing, you agree to our Terms of Service and Privacy Notice, and to receive occasional marketing emails.

EXPLAIN

TL;DR

EXPLAIN shows how ClickHouse executes a query, including which indices are used, how many rows are read, and the execution plan. Use EXPLAIN to identify optimization opportunities, verify that sorting keys and data skipping indices are being used, and understand query performance characteristics before running the actual query.

EXPLAIN shows how ClickHouse plans to execute your query, helping you identify bottlenecks and optimization opportunities.


Basic EXPLAIN Usage

Syntax:

EXPLAIN [TYPE] SELECT ...

Types:

Tinybird is not affiliated with, associated with, or sponsored by ClickHouse, Inc. ClickHouse® is a registered trademark of ClickHouse, Inc.

EXPLAIN | ClickHouse for Developers