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博客 ” ,链接:https://blog.itpub.net/35489/viewspace-660516/ ,如需转载,请注明出处,否则将追究法律责任。