Turning on execution plans affects performance

When performance tuning I often use a combination of Execution Plans, SET STATISTICS IO and SET STATISTICS TIME. what I've noticed lately is that when using TIME and actual execution plans the teim and cpu reports is very large. If I turn off actual execution plans the duration drastically reduces. I can understand this as the execution plan has to be put together and sent to the client, but it is very noticeable.

Whats more is that the extra duration seesm to be different for different query plans.

So word of warning if you are doing some performance tuning and are trying to compare CPUT and duration , you don't want to have execution plans turned on as this will skew the result.

 


Published 26 February 2010 16:27 by simonsabin

Comments

27 February 2010 02:56 by SqlServerKudos

# Turning on execution plans affects performance

Kudos for a great Sql Server article - Trackback from SqlServerKudos

# Logging execution time using AOP | Rajeesh's Blog | DevBlogr

Pingback from  Logging execution time using AOP | Rajeesh's Blog | DevBlogr

01 March 2010 06:51 by Sanjeev Agarwal

# Daily tech links for .net and related technologies - Mar 01-03, 2010

Daily tech links for .net and related technologies - Mar 01-03, 2010 Web Development ASP.NET MVC TempData