SQL Server tuning: SET STATISTICS profile on

Source: Internet
Author: User

After setting the SET statistics profile, you will return to the Execution plan table, through which you can understand the process of statement execution and understand if SQL Server chooses the correct execution plan to determine the tuning direction!

1. Returns the table field description:

Rows: The actual number of rows returned in each step of the execution plan

Executes: number of executions per step of the execution plan

Stmttext: The specific content of the execution plan, each step has its own execution content, and the result is returned, of course, each time, will spend the system resources (time CPU memory)

Estimaterows:sql Server estimates the number of rows that are returned per step, and we often compare the values of estimaterows with rows to confirm that SQL Server is estimated to be accurate

Estimateio:sql Server estimates the I/O resources spent per step execution

Estimatecpu:sql server estimates the CPU resources that are spent in each step of execution

Totalsubtreecost:sql Server calculates the cost of each step of the execution plan based on ESTIMATECPU and Estimateio, which includes the sum of both itself and all subtree execution plans under the tree .

Warnings:sql Server Estimated Warning (example: a step execution failed to find statistics support SQL Server estimate)

Parallel: Whether to use a parallel execution plan

SQL Server tuning: SET STATISTICS profile on

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.