Some ideas for tracking top SQL recently

Source: Internet
Author: User

1. in the list of top SQL statements, the first priority is the number of disk reads executed each time. The larger the number, the worse it is, but it cannot be absolute, pay attention to the number of processed rows. If the number of rows is large, the number of disk reads is normal. That is to say, we need to care about the number of records read each time on the disk.

2. note that syntax analysis calls this indicator. When a large number of top SQL statements use statements with syntax analysis calling 1, the following two problems are described:. your statement may have been executed only once; B. your statement cannot be re-resolved. It may be because your statement does not use the bound variable or repeated parsing. your library cache is relatively small, causing frequent exchanges of parsed SQL statements.

3. Based on these situations, we found that SQL problems are mainly caused by the absence of Bound variables.

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.