Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

CXPACKET wait type - package never finish executing

$
0
0

Hi everyone!

I have relatively complicated procedure (15 inner and 15 left joins) which works for 6-7 minutes and returns around 1.5 million records. When I execute same procedure through SSIS package, it can last for 2, 3, 4 hours and never finish executing, with CXPACKET wait type in all processes in SQL Server activity monitor.

I read that I should add some indexes to speed-up my query, but in my case (large query) index(es) actually increase logical reads and slows down the query from 6-7 minutes to 11-12 minutes, so I deleted all unnecessary indexes to keep logical reads at minimum.

I also know that I can set option (maxdop 1) in my procedure, but I would like to keep using parallelism if possible. What is happening with my package and how can I detect and fix this problem? Are there any settings in SSIS or this is just procedure issue?

Thanks in advance,


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>