MySQL Optimization direction

Source: Internet
Author: User
With the accumulation of data, slowly some of our bad habits will be exposed in the system, the efficiency of the program execution is low, the user experience is reduced, if we do not take some measures, then users will be lost.
Improving the execution efficiency of your program may require a lot of work, but one of the important tasks is MySQL optimization, or database optimization.

Optimization direction

1. Rationalization of table design (database paradigm)
2. Add an appropriate index (primary key index, unique index, normal index, full-text index)
3. Efficient SQL (SQL statement optimization, especially slow query)
4. Sub-table technology (horizontal split, vertical division)
5. Read and write separation
6. Stored Procedures (precompiled SQL statements for improved execution efficiency)
7. Configuration optimizations such as maximum concurrency
8.mysql hardware upgrade (hardware is flawed)
9. Regular removal of useless data (useless data, memory also affect query efficiency)
10. Timed defragmentation

If each case is recorded, it will cause this article to be too large, so I will make a separate record of the learning of each case.

MySQL Optimization direction

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.