Optimize a MariaDB Table

Defragments a table and reclaims storage space from deleted rows. After heavy DELETE/UPDATE workloads, tables accumulate wasted space that OPTIMIZE reclaims.

When you need this: After mass deletes or when SHOW TABLE STATUS shows Data_free is large relative to Data_length.

Variables

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.