{"data":{"slug":"github-eosphoros-ai-db-gpt-assets-retired-suites-db-ops-skills-explain-plan-8a684a358105","title":"Execution Plan Review for SQL Optimization","summary":"Review SQL execution plans to identify performance issues like full scans, missing indexes, sorting, and lock waits. Provide actionable insights for optimization based on EXPLAIN output.","url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-assets-retired-suites-db-ops-skills-explain-plan-8a684a358105","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-eosphoros-ai-db-gpt-assets-retired-suites-db-ops-skills-explain-plan-8a684a358105","markdown_url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-assets-retired-suites-db-ops-skills-explain-plan-8a684a358105.md","download_url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-assets-retired-suites-db-ops-skills-explain-plan-8a684a358105\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the EXPLAIN output is available and accurate before reviewing. Do not assume or fabricate execution plan details if they are not provided.","instructions":"---\nname: explain-plan\nname_zh: \u6267\u884c\u8ba1\u5212\u89e3\u8bfb\nname_en: Execution Plan Review\ndescription_en: Interpret a SQL execution plan and identify full scans, index issues, sorting, and lock evidence. Clearly mark findings that still require verification.\nargument-hint-en: Review the EXPLAIN output for this SQL and identify plan issues\ncommand: \/explain\ndescription: \u89e3\u8bfb\u5355\u6761 SQL \u7684\u6267\u884c\u8ba1\u5212\uff0c\u5b9a\u4f4d\u5168\u8868\u626b\u63cf\u3001\u7d22\u5f15\u5931\u6548\u3001\u6392\u5e8f\u4e0e\u9501\u7b49\u5f85\u8bc1\u636e\u3002\nuser-invocable: true\nargument-hint-zh: \u5bf9\u4ee5\u4e0b SQL \u505a EXPLAIN \u5224\u8bfb\u5e76\u6307\u51fa\u574f\u8ba1\u5212\u539f\u56e0\uff1a\n---\n\n# \u6267\u884c\u8ba1\u5212\u89e3\u8bfb\n\n\u9075\u5faa[\u6162\u67e5\u8be2\u8bca\u65ad\u6280\u80fd](..\/slow-query-diagnosis\/SKILL.md)\u4e0e\u5176\u4e2d\u7684\u6839\u56e0\u53ca\u5b89\u5168\u53c2\u8003\u3002\n\u4f18\u5148\u89e3\u8bfb\u7528\u6237\u7ed9\u51fa\u7684 SQL \u4e0e EXPLAIN\uff1b\u5df2\u8fde\u63a5\u76ee\u6807\u5e93\u4e14\u83b7\u51c6\u65f6\u624d\u80fd\u91c7\u96c6\u3002\n\u6ca1\u6709\u771f\u5b9e\u6267\u884c\u8ba1\u5212\u65f6\u660e\u786e\u6807\u6ce8\u5f85\u9a8c\u8bc1\uff0c\u4e0d\u865a\u6784 rows\u3001\u8017\u65f6\u6216\u7d22\u5f15\u547d\u4e2d\u3002\n\u4fee\u590d\u52a8\u4f5c\u53ea\u51fa\u63d0\u6848\uff0c\u4e0d\u81ea\u52a8\u6267\u884c DDL \u6216 ANALYZE\u3002\n","use_cases":["Identify full table scans in a SELECT query with no WHERE clause.","Detect missing indexes in a JOIN operation causing high cost.","Analyze sorting operations in ORDER BY clauses for optimization."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/eosphoros-ai\/DB-GPT\/blob\/bb9c5e8a62a2c3ee3ea62e4c42d88f4deea2f372\/assets\/retired-suites\/db-ops\/skills\/explain-plan\/SKILL.md","source_commit":"bb9c5e8a62a2c3ee3ea62e4c42d88f4deea2f372","license":null,"version":null,"listing_approved_at":"2026-11-27","created_at":"2026-11-26T09:15:24.000000Z","updated_at":"2026-11-27T07:43:08.000000Z","seo_title":"SQL Execution Plan Analysis for Performance Optimization","seo_description":"Review SQL execution plans to identify performance issues like full scans, missing indexes, sorting, and lock waits. Get actionable insights for optimization based on EX\u1eaa","seo_keywords":["SQL execution plan analysis","SQL performance optimization","SQL query optimization","execution plan review","SQL query tuning"]}}