Documentation

EXPLAIN command

The EXPLAIN command returns the logical and physical execution plan for the specified SQL statement.

EXPLAIN [ANALYZE] [VERBOSE] statement

EXPLAIN

Returns the execution plan of a statement. To output more details, use EXPLAIN VERBOSE.

Example EXPLAIN ANALYZE
EXPLAIN
SELECT
  room,
  avg(temp) AS temp
FROM home
GROUP BY room

View EXPLAIN example output

EXPLAIN ANALYZE

Returns the execution plan and metrics of a statement. To output more information, use EXPLAIN ANALYZE VERBOSE.

Example EXPLAIN ANALYZE
EXPLAIN ANALYZE
SELECT
  room,
  avg(temp) AS temp
FROM home
GROUP BY room

View EXPLAIN ANALYZE example output


Was this page helpful?

Thank you for your feedback!


Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.

InfluxDB Cloud Serverless powered by IOx