Question

when running a delete query to a table that has many foreign keys I get the following waits.

I noticed that I have both CXPACKETS and CXCONSUMER wait types at the same time during of the execution of my query.

the question is:

what is the relation between these 2 wait types (if any)?

enter image description here

Was it helpful?

Solution

  • CXCONSUMER occurs when a consumer thread waits for a producer thread to send rows.
  • CXPACKET occurs when trying to synchronize the query processor exchange iterator or getting a required buffer.

CXCONSUMER waits are generally benign, encountered as a normal part of parallel(CXPACKET) execution.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top