Skip to content

Explain a captured query

Select a captured query and press Explain in the detail panel. The plan appears as text under Plan. SQLEye never uses ANALYZE, so the statement is planned, not executed.

  • The instance is running.
  • The query has no error.

A single SELECT, INSERT, UPDATE or DELETE. A WITH ... query is accepted when its main statement is DML, and so is a parenthesised SELECT.

Statements that are already EXPLAIN or ANALYZE, DDL, several statements in one string, and statements that were truncated (SQL over 8 KB is cut). SQLEye shows:

only a single SELECT, INSERT, UPDATE or DELETE statement can be explained
  1. Turn on capture and run your workload.
  2. Select the statement, using filters if needed.
  3. Press Explain and read the plan under Plan.
  4. If MySQL showed “No index used”, look for a full scan in the plan.

SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.