Read access paths
ALL means a full table scan; index means a full index scan. Compare the chosen key with possible keys, filter estimates and table size before deciding whether an index is missing.
QUERY PLAN LAB · LOCAL BROWSER TOOL
Follow the tables, indexes and estimates behind your query. Compare two plans to see what the optimizer changed.
01 / INPUT
Run EXPLAIN FORMAT=JSON SELECT … in your database and paste its JSON output. Add a second plan to compare. The example is hand-written to demonstrate the interface.
Paste a plan or explore the illustrative comparison.
02 / INSPECT
Select a node to inspect its evidence. Indentation follows the JSON nesting.
These are prompts to investigate, not errors. A scan may be the right choice for a small table. Filesort does not prove that sorting spilled to disk.
03 / COMPARE
This table compares access fields only; review operation changes such as filesort in each plan tree. Tables match by name and occurrence order. Reordered subqueries or repeated table names may need manual review. Estimates describe the optimizer's expectations; they do not prove a runtime improvement.
| Table | Status | Access / index | Rows per scan | Other changes |
|---|
METHOD & LIMITS
ALL means a full table scan; index means a full index scan. Compare the chosen key with possible keys, filter estimates and table size before deciding whether an index is missing.
Optimizer cost is not milliseconds. Root cost is shown separately and never summed with child costs. Compare the same query, engine version, data and settings. MySQL and MariaDB costs are not interchangeable.
MariaDB ANALYZE FORMAT=JSON may include r_rows and r_loops; these are displayed separately. ANALYZE executes the query. MySQL TREE output and JSON format version 2 are not supported here.
Inputs are held only in memory. No plan, SQL or file is uploaded or saved automatically. CoolCode's aggregate visit counter runs independently and does not receive your plan. Downloaded reports contain your plan details.
References: MySQL EXPLAIN · MariaDB JSON plans
Related tools: Rack Recipes · Rack Expiry