CXPACKET
It means SQL Query is involved in parallel query execution. This waittype indicates that the SPID is waiting on a parallel process to complete or start.
CXPACKET: Occurs when trying to synchronize the query processor exchange iterator. You may consider lowering the degree of parallelism if contention on this wait type becomes a problem.
现象:
运行某个procedure的时候一直不能正常运行(存在很多的CXPACKET狀態的進程)。 查找原因,发现需要降低线程 。
查看相关并行配置: max degree of parallelism 参数 ,可以适当调整 。
不过为了不影响到其他运行正常的SQL , 可以在某些运行出现类似问题的语句中加入 OPTION (MAXDOP 2 ) ;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-660516/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-660516/
本文介绍了解决SQL Server并行查询中出现CXPACKET等待问题的方法。当遇到大量CXPACKET状态的进程时,可以通过调整max degree of parallelism参数或在特定查询中使用OPTION(MAXDOP2)来降低线程数。
1338

被折叠的 条评论
为什么被折叠?



