Monitoring Analysis of mysql index usage

Source: Internet
Author: User

Mysql index usage monitoring analysis show status like 'handler _ read % ';

Handler_read_first indicates the number of times the index header is read. If the value is very high, it indicates that there are many full index scans. Handler_read_key indicates the number of times an index is used. If we add a new index, we can check whether Handler_read_key has been increased. If so, SQL uses indexes. Www.2cto.com Handler_read_next indicates that the following indexes are read. Generally, range scan occurs. Handler_read_prev indicates the upper column of the index to be read, which usually occurs in order... DESC. Handler_read_rnd indicates reading rows at a fixed position. If the value is very high, it indicates that a large number of result sets are sorted, full table scanning is performed, and no proper KEY is used for associated queries. Handler_read_rnd_next indicates that many table scans are performed and query performance is low. Author gzh0222

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.