Re: SP4 performance Woes.
- From: "Mike Epprecht \(SQL MVP\)" <mike@xxxxxxxxxxxx>
- Date: Thu, 11 Aug 2005 22:27:28 +0200
Hi
Check that the data types on the joined tables match exactly.
There was a change introduced between SP3 and SP4, in one of the hotfixes,
when the data type precedence was changed as it resulted in unpredictable
result in some cases.
e.g. If one column is a decanal(10,2) and the other column is an INT, SQL
Server first has to change the INT to decimal(10,2) and then do the
comparison.
You did not supply any DDL and DML so I am assuming it is something like
this.
Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@xxxxxxxxxxxx
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Marcelo" <marcelo.no@xxxxxxxxxxxx> wrote in message
news:ObZUD4pnFHA.2580@xxxxxxxxxxxxxxxxxxxxxxx
>
> Hello,
> This SQL Statement which takes 1 second on a server with SP3 takes 24
> MINUTES after I upgrade to SP4.
>
> SELECT
> MDL1.[id_entity]
> FROM Entity E
> INNER JOIN Module_1133821_0 MOD0 ON E.id_entity=MOD0.id_entity
> LEFT JOIN Module_1133821_2959 MOD2959 ON E.id_entity=MOD2959.id_entity
> LEFT JOIN MEMBER_ENTITY_1133821 ME1 ON MOD2959
> .[Motivo]=ME1.ID_COUNTER
> LEFT JOIN Module_1133821_2995 MDL1 ON MDL1.ID_ENTITY =
> ME1.ID_MEMBER_ENTITY
> LEFT JOIN MEMBER_ENTITY_1133821 ME2 ON MOD2959
> .[AsignadoAtClientes]=ME2.ID_COUNTER
> LEFT JOIN Module_1133821_2998 MDL2 ON MDL2.ID_ENTITY =
> ME2.ID_MEMBER_ENTITY
> WHERE E.TYPE_ENTITY=1125851
>
> If I select ANY field from ANY table which is being LEFT JOINED, the query
> takes 24 minutes.
>
> For now, I have downgraded to SP3.
>
>
> Thanks for your help.
>
>
.
- Follow-Ups:
- Re: SP4 performance Woes.
- From: Marcelo
- Re: SP4 performance Woes.
- References:
- SP4 performance Woes.
- From: Marcelo
- SP4 performance Woes.
- Prev by Date: Re: Cluster and WriteBack Caching
- Next by Date: Re: SP4 performance Woes.
- Previous by thread: SP4 performance Woes.
- Next by thread: Re: SP4 performance Woes.
- Index(es):
Relevant Pages
|