Blog Post

Work of art – the intra query parallelism deadlock graphs

,

Look at some of the graphs produced by the intra query parallelism deadlocks, below.

post132_graph1

 
post132_graph6

 
post132_graph10

 
post132_graph9

 
post132_graph8

 
post132_graph7

 
post132_graph5

 
post132_graph4

 
post132_graph3

 
post132_graph2

 

Bart Duncan explains this “phenomenon” (bug, rather) in this article.

The two solutions to this problem are:

  • Adding or tuning an index in order to reduce the cost of the query and hence, eliminate parallelism
  • Using “OPTION (MAXDOP 1)” query hint to force-stop the query from parallelising

In some instances, depending on the optimization level for the query (specifically, TIMEOUT), you may be able to influence the execution plan by changing the order of the joins.

Would be interested to know if any of you have encountered this scenario and what you did to resolve the issue.

The post Work of art – the intra query parallelism deadlock graphs appeared first on SQLYSE.

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating