{"data":{"slug":"github-eosphoros-ai-db-gpt-assets-suites-sql-optimization-expert-skills-index-candidates-5e74452aab51","title":"Index Candidate Evaluation and Optimization Suggestions","summary":"Provide index candidate recommendations based on queries and existing indexes to help optimize database performance. Output includes candidate DDL, assumptions about read benefits, write maintenance costs, and space impact, without creating indexes or guaranteeing performance gains.","url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-assets-suites-sql-optimization-expert-skills-index-candidates-5e74452aab51","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-eosphoros-ai-db-gpt-assets-suites-sql-optimization-expert-skills-index-candidates-5e74452aab51","markdown_url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-assets-suites-sql-optimization-expert-skills-index-candidates-5e74452aab51.md","download_url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-assets-suites-sql-optimization-expert-skills-index-candidates-5e74452aab51\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure that the target tables, common queries, and read\/write workload are provided before initiating the evaluation. The recommendations are based on the supplied queries and existing indexes, and do not account for overall system load if not specified.","instructions":"---\nname: index-candidates\nname_zh: \u7d22\u5f15\u5019\u9009\u8bc4\u4f30\nname_en: Index Candidates\ndescription: Recommend index candidates from supplied queries and existing indexes. Use for index advice or redundancy review. Do not create indexes or promise measured gains.\ndescription_zh: \u7528\u6237\u8981\u6c42\u7d22\u5f15\u63a8\u8350\u3001\u8054\u5408\u7d22\u5f15\u8bbe\u8ba1\u6216\u5197\u4f59\u7d22\u5f15\u8bc4\u4f30\u65f6\u4f7f\u7528\uff1b\u8f93\u51fa\u5019\u9009 DDL\u3001\u9002\u7528\u6761\u4ef6\u3001\u5199\u5165\u4ee3\u4ef7\u4e0e\u5b9e\u6d4b\u65b9\u6848\u3002\ncommand: \/index-advise\nargument-hint-zh: \u63d0\u4f9b\u76ee\u6807\u8868\u3001\u5e38\u7528 SQL \u548c\u5df2\u77e5\u8bfb\u5199\u8d1f\u8f7d\nargument-hint-en: Supply target tables, common queries and read\/write workload\nuser-invocable: true\n---\n\n# \u7d22\u5f15\u5019\u9009\u8bc4\u4f30\n\n\u9075\u5b88[\u751f\u4ea7\u8bfb\u53d6\u89c4\u5219](..\/..\/references\/production-readonly.md)\uff0c\u6838\u5bf9[\u7ed3\u6784\u4e0e\u7d22\u5f15\u8bc1\u636e](..\/..\/references\/database-evidence.md)\u3002\n\n1. \u6536\u96c6\u76ee\u6807\u67e5\u8be2\u3001\u5df2\u6709\u7d22\u5f15\u5b9a\u4e49\u3001\u7ea6\u675f\u3001\u8c13\u8bcd\u3001\u6392\u5e8f\u548c JOIN \u6761\u4ef6\u3002\u7f3a\u5c11\u6574\u4f53\u8d1f\u8f7d\u65f6\u9650\u5b9a\u5efa\u8bae\u53ea\u9002\u7528\u4e8e\u5df2\u63d0\u4f9b\u67e5\u8be2\u3002\n2. \u6bd4\u8f83\u5df2\u6709\u7d22\u5f15\u4e0e\u5019\u9009\u7684\u5217\u987a\u5e8f\u3001\u524d\u7f00\u3001\u8986\u76d6\u8303\u56f4\u3001\u552f\u4e00\u6027\u3001\u90e8\u5206\/\u8868\u8fbe\u5f0f\u7d22\u5f15\u53ca\u65b9\u8a00\u652f\u6301\u3002\u524d\u7f00\u76f8\u540c\u4e0d\u81ea\u52a8\u610f\u5473\u7740\u53ef\u4ee5\u5220\u9664\u65e7\u7d22\u5f15\u3002\n3. \u5c06\u9009\u62e9\u6027\u672a\u77e5\u3001\u53c2\u6570\u5206\u5e03\u672a\u77e5\u548c\u7edf\u8ba1\u7f3a\u5931\u5217\u4e3a\u9a8c\u8bc1\u9879\uff1b\u4e0d\u6267\u884c\u5927\u8868 DISTINCT\/COUNT \u6765\u731c\u6d4b\u9009\u62e9\u6027\u3002\n4. \u7ed9\u51fa\u5019\u9009 DDL \u6587\u672c\uff0c\u5217\u51fa\u8bfb\u53d6\u6536\u76ca\u5047\u8bbe\u3001\u5199\u5165\u7ef4\u62a4\u6210\u672c\u3001\u7a7a\u95f4\u5f71\u54cd\u7684\u4f9d\u636e\u53ca\u5efa\u7d22\u5f15\u9501\/\u5728\u7ebf\u80fd\u529b\u5f85\u786e\u8ba4\u9879\u3002\n5. \u4ea4\u4ed8\u5019\u9009\u6e05\u5355\u3001\u53ef\u590d\u5236 DDL\u3001\u4fdd\u7559\/\u5408\u5e76\u7406\u7531\u4e0e\u6d4b\u8bd5\u65b9\u6848\u3002\u672a\u7ecf\u5b9e\u6d4b\u4e0d\u5199\u201c\u63d0\u5347 X%\u201d\uff0c\u4e0d\u6267\u884c CREATE\/DROP INDEX\u3002\u7efc\u5408\u62a5\u544a\u4f7f\u7528[\u62a5\u544a\u6a21\u677f](..\/..\/templates\/optimization-report.md)\u3002\n","use_cases":["Recommend new indexes to improve query performance","Evaluate redundancy of existing indexes","Design composite indexes to reduce query overhead"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/eosphoros-ai\/DB-GPT\/blob\/bb9c5e8a62a2c3ee3ea62e4c42d88f4deea2f372\/assets\/suites\/sql-optimization-expert\/skills\/index-candidates\/SKILL.md","source_commit":"bb9c5e8a62a2c3ee3ea62e4c42d88f4deea2f372","license":null,"version":null,"listing_approved_at":"2026-11-27","created_at":"2026-11-26T10:41:25.000000Z","updated_at":"2026-11-27T07:43:08.000000Z","seo_title":"Index Candidate Evaluation and Optimization Suggestions","seo_description":"Recommend index candidates to optimize database performance, suitable for index design and redundancy evaluation.","seo_keywords":["Index recommendation","Index optimization","Redundant index evaluation","Query performance improvement","Composite index design"]}}