Optimize tables
db_optimize_tableRun OPTIMIZE TABLE on one or more database tables to reclaim storage and refresh indexes. Provide the database and table names to target.
Instructions
Run OPTIMIZE TABLE on one or more tables of a database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes | Table names, e.g. ["wp_posts"]. Use db_tables to discover them. | |
| db_name | Yes | Database name. |