Re: Poor performance after upgrading to sql server 2005
- From: "Andrew J. Kelly" <sqlmvpnooospam@xxxxxxxxxxxx>
- Date: Thu, 2 Mar 2006 22:30:22 -0500
The optimizer has changed between 2000 and 2005 so there will certainly be
some types of queries that are better optimized and some that are not. If
either of you can provide the exact code and the execution plans for both
(preferably xml for 2005) I can give them to the dev team to look at. If
there is a problem with how the optimizer is dealing with these it they will
want to know about it and there will be a better chance of fixing it. That
is if it is broke to begin with. It is quite possible a matter of
implementation.
--
Andrew J. Kelly SQL MVP
"Damian" <damiank@xxxxxxxxxxxxxxx> wrote in message
news:1141354358.202211.278990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
We have just upgraded our development server to sql sever 2005. Dual
processor, 4GB RAM, 64 bit etc.
We also noticed an incredible difference in the execution of stored
procedures that are using correlated subqueries. An interesing note is
that while rewriting one of these stored procedures I created an outer
join to a derived table (the replacement) and while verifying the
results, my performance was back, and the data was correct in both
instances. Comment out the derived table, performance deserts us.
Another interesting thing was pointed out to me today by a co-developer
(as I was going through and re-writing a stack of these) is that an ad
hoc query built and then executed with the EXEC command did not suffer
from the same performance problem.
Do these differences have to do with the statement level compilation
introduced in 2005?
Any thoughts would be appreciated.
.
- Follow-Ups:
- Re: Poor performance after upgrading to sql server 2005
- From: Rich Wood
- Re: Poor performance after upgrading to sql server 2005
- From: Damian
- Re: Poor performance after upgrading to sql server 2005
- References:
- Re: Poor performance after upgrading to sql server 2005
- From: Andrew J. Kelly
- Re: Poor performance after upgrading to sql server 2005
- From: Rich Wood
- Re: Poor performance after upgrading to sql server 2005
- From: Andrew J. Kelly
- Re: Poor performance after upgrading to sql server 2005
- From: Rich Wood
- Re: Poor performance after upgrading to sql server 2005
- From: Andrew J. Kelly
- Re: Poor performance after upgrading to sql server 2005
- From: Rich Wood
- Re: Poor performance after upgrading to sql server 2005
- From: Andrew J. Kelly
- Re: Poor performance after upgrading to sql server 2005
- From: Damian
- Re: Poor performance after upgrading to sql server 2005
- Prev by Date: Re: Poor performance after upgrading to sql server 2005
- Next by Date: Error: 17832, Severity: 20, State: 10
- Previous by thread: Re: Poor performance after upgrading to sql server 2005
- Next by thread: Re: Poor performance after upgrading to sql server 2005
- Index(es):
Relevant Pages
|