MySQL optimization self-Summary, mysql Optimization

Source: Internet
Author: User

MySQL optimization self-Summary, mysql Optimization

Through work and time learning, I have summarized the major aspects of MySQL optimization:

① Optimization on the storage layer (including storage engines, column types, and paradigm specifications );

② Optimize the design layer (including cache: memcache and redis, index the column fields, and partition and table sharding );

③ Optimize the architecture layer (read/write replication, Master/Slave separation, that is, build a Cluster Server );

④ Optimize the SQL statement layer (select a more appropriate SQL statement for addition, deletion, modification, and query. You can use the explain execution plan to check whether the selected SQL statement is appropriate. Generally, the minimum level is range, const is the highest level, system is the top level, and some SQL statements can only reach the index, so other methods are required for optimization );

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.