mysql_index_suggestions
Generate ALTER TABLE ADD INDEX SQL for MySQL columns flagged as missing indexes, including composite variants and EXPLAIN guidance 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 |