This is a simple command that is not used often, even by experienced database creators. So, how does it help you?Once you implement a number of changes into your table, including inserting, deleting and updating data, the table fragments on the computer. OPTIMIZE TABLE makes it possible to quick defragment the data, without any need for specialist tools. It is done by:* Restoring the table if strings have been split or deleted* Sort the index pages where needed* Update the statistic data when neededYou should use OPTIMIZE TABLE whenever large pieces of data has been deleted or when there have been major manipulations, such as inserting and updating the data, with variable sizes (VARCHAR, TEXT and BLOB).Important note: this operation blocks the table. For more tips on MySQL and other popular databases visit

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts