I'm trying to troubleshoot why a query runs 1 second vs 18 seconds in 2 very similar environments, but different servers. The database where it runs fast is a restore of a backup of the database where it runs slow. To help me figure
out what was going on, I decided to include the actual execution plan and do some analysis between the 2 runs. When I included the actual execution plan in the "fast" server, the query took 20 seconds. It's a little too coincidental that
its so close to the 18 seconds it takes in the "slow" server. So I'm wondering, what could be causing the slowdown by simply enabling "Include Actual Execution Plan". And is there any other way to compare actual plans besides setting it in the
SMS GUI?
↧