Simple way to optimize MySQL

Source: Internet
Author: User
Tags mysql import

Reference Blog

My notebook to the MySQL import txt data, there is a table imported for nearly 4 hours, and a number of tables are related to each other, so when you do a joint query you will find that the problem is much, I was a joint query two tables on the crash, So optimizing MySQL is a matter of urgency.

The usual method is to build an index that loses memory to speed up queries. Of course all other operations except the query operation will be slow.

And MySQL has a simple statement to optimize the table.

OPTIMIZE TABLE sample;

I have optimized my table and the results affect the behavior of 0 ... Also drunk

Simple way to optimize MySQL

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.