🔍

Query Explain Analyzer

Verified

by Community

Helps you interpret EXPLAIN and EXPLAIN ANALYZE output from PostgreSQL, MySQL, and other databases. Identifies sequential scans, costly joins, missing indexes, and inefficient subqueries with actionable optimization recommendations.

explainqueryplanperformancedatabasesql

Query Explain Analyzer

Interpret EXPLAIN and EXPLAIN ANALYZE output to diagnose query performance issues and suggest fixes.

Usage

Paste the EXPLAIN output from your slow query and this skill will interpret it and suggest optimizations.

Examples

  • "Explain this EXPLAIN ANALYZE output showing a sequential scan on a large table"
  • "Why is my query doing a nested loop instead of a hash join?"
  • "Interpret this query plan and suggest how to reduce the estimated cost"

Guidelines

  • Focus on the highest-cost nodes in the execution plan
  • Look for sequential scans on large tables as optimization targets
  • Check actual vs estimated row counts for planner inaccuracies
  • Consider running ANALYZE to update table statistics
  • Compare plans before and after optimization changes