mysql_index_suggestions
Generate exact ALTER TABLE ADD INDEX SQL for missing MySQL indexes, with composite alternatives and EXPLAIN steps to confirm index usage.
Instructions
Generates the exact ALTER TABLE ADD INDEX SQL for a MySQL table column, including a composite variant and EXPLAIN guidance to verify the index is used. Call this when the analyzer flags a missing MySQL index or full table scan finding. Does not verify whether the index already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | MySQL table name | |
| column | Yes | Column name to index |