PostgreSQL & MySQL DB EXPLAIN Plan Visualizer & Inspector Guide
Understanding database query performance requires analyzing execution plans generated by `EXPLAIN (ANALYZE, FORMAT JSON)` in PostgreSQL or `EXPLAIN FORMAT=JSON` in MySQL. Raw EXPLAIN JSON outputs are often hundreds of lines long and difficult to parse manually. This visualizer transforms raw plan JSON into an interactive node cost tree with time percentage bars and automated bottleneck detection alerts (such as Sequential Scans, Disk Temporary Spills, and high Filter Discard ratios).
Execution plan parsing and node tree calculations run 100% locally in your browser memory.
✨ Core Capabilities
- •Parses PostgreSQL EXPLAIN (ANALYZE, FORMAT JSON) and MySQL EXPLAIN FORMAT=JSON outputs.
- •Interactive execution node tree with time percentage progress bars and cost breakdown.
- •Automated query bottleneck detector highlighting Full Table Scans (Seq Scan) and Disk Spills.
- •Actionable index tuning recommendations (e.g. CREATE INDEX statements).
🚀 Step-by-Step Guide
- 1. Run EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) on your database query.
- 2. Paste the JSON output into the left input panel or click Sample Plan.
- 3. Inspect the node tree for red time-consumption bars and warnings.
- 4. Switch to the Bottleneck Alerts tab to read index optimization recommendations.