Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LATCH_EX with CXPACKET causing query performance degradation

Posted on 2009-05-13
1
Medium Priority
?
1,966 Views
Last Modified: 2012-06-27
SQL Server 2000 SP4 Build 2187. When runing simple SELECT query with INNER joins causing LATCH_EX waittype with huge number of CXPACKET causing consistent high CPU with performance degradation. Indexes are in place with stats updated. Moving data files to different disk didn't make any difference. Execution plans are changing with and without 'TOP' clause. With 'TOP' clause plans are generating with 'INDEX SEEK, Nested Loop' while without 'TOP' clause changing to 'INDEX SCAN, Table Spool, Hash Match, Merge Join'. WHY? Can anyone give some action plan?
0
Comment
Question by:info2rafiq
1 Comment
 
LVL 51

Accepted Solution

by:
Mark Wills earned 2000 total points
ID: 24381764
Hi info2rafig,  

sounds like some I/O problems maybe...

Are you running profiler by chance ? http://support.microsoft.com/kb/929728

There is a fairly high level overview of wait types and what to look for : http://www.sqldev.net/misc/waittypes.htm

A fella by the name of Thomas Davidson is the guru on 2000 performance. There is a whitepaper floating around, but his presentation is a bit more graphic : http://www.sqldev.net/events.htm#SQL_Connections_12-15_October_2003,_Palm_Springs_CA_  look for the one in the middle : SPR-201-4

Apologies about all the links, but performance is a minefield potentially, and best to understand what might be causing it first. So, have a look and read, and then come back with some more questions if needed - OK ?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question