In order to meaningfully compare execution time across optimization attempts, the cache needs to be cleared, and this can be done by executing
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
go
between query timings.
To turn query timing on -
SET STATISTICS TIME ON
To turn query timing off -
STATISTICS TIME OFF
No comments:
Post a Comment
comment: