fragmentation_analysis
Rank MySQL tables by reclaimable free space to identify OPTIMIZE TABLE candidates. Analyze fragmentation offline or fetch live worst-fragmented tables.
Instructions
[READ] Rank tables by reclaimable data_free into OPTIMIZE TABLE candidates.
Pass 'tables' (as from table_fragmentation) for pure/offline analysis, or omit to pull the worst-fragmented tables live. Each recommendation cites its numbers.
Args: tables: Injected fragmentation rows; if omitted, pulled live. limit: How many tables to pull when not injected (default 50). target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| tables | No | ||
| target | No |