mysql_index_suggestions
Generate ALTER TABLE ADD INDEX SQL for flagged MySQL columns, including composite index and EXPLAIN guidance to verify 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 |