MySQL about table defragmentation optimize table operation

Source: Internet
Author: User
MySQL official recommendations for table defragmentation optimize table operations
1.MySQL The official recommendation is not to often (hourly or daily) defragmentation, generally according to the actual situation, only a weekly or monthly collation can be written as a scheduled task to do.
The 2.OPTIMIZE table works only on MYISAM,BDB and InnoDB tables, especially in MyISAM tables. In addition, not all tables need to be defragmented, generally only the tables containing the variable-length text data types described above can be collated.
3. mysql locks the table during optimize table operation.
4. By default, the Optimize table is used directly on the INNODB engine's data table, which may display "table does not support optimize, doing recreate + analyze instead" prompts. This time, we can
Restart MySQL with the mysqld--skip-new or mysqld--safe-mode command to enable other engines to support optimize TABLE.

Reference Documentation:
Https://www.cnblogs.com/jimmy-muyuan/p/5874410.html
http://blog.itpub.net/15498/viewspace-2124721/

MySQL about table defragmentation optimize table operation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.