简体   繁体   中英

Execution plan, SQL Server 2012

I have a question about execution plan:

I wrote a query before I approve it execution plan use clustered index scan with 2 row on reads:

Table 'Worktable'. Scan count 1, logical reads 17
Table 'a21'. Scan count 3, logical reads 6

after I create index seek execution plain use index seek

Scan count 43, logical reads 86.

What's better?

Thanks

You can't tell from the numbers because it does not show you which reads were physical, which were logical and how costly each read was. The read/write numbers are almost worthless.

Instead, measure CPU time used. For your workload it is extremely likely that there is no physical IO because the tables are so small. So don't measure IO.

Also, compare the execution plans.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM