MySQL Index 1

Source: Internet
Author: User
Tags mysql index

The best index is to improve the query speed of the data in the table, as important as the directory of the book, you can quickly find the required knowledge.

Above is a table of more than 110,000 data, using a statement query, such as:

Time: 0.108s

Another example:

Spents: 0.004s

Next, create the index:

Right-click on the T_book and select Manage Indexes:

Select NEW:

The indexing option is set to BookName:

Click Apply-Save.

Then we are using the first statement to see:

SELECT * from T_book WHERE bookname= ' test book title 5 ';

Do not index the original spents 108 milliseconds:

1 milliseconds to add an index:

The speed has increased by more than 100 times.

So MySQL performance is good, especially after optimization.

To delete an index:

Right-manage indexes on the T_book table-Tick and delete-save.

MySQL Index 1

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.