Should an update statement query plan ever go parallel?
-
07-03-2021 - |
Question
If an update statement's query plan does go parallel, does it guarantee a communication buffer resource deadlock, or is that determined by whether the parallel plan is using all cores?
Solution
From the documentation:
The update and delete operators in a parallel query execution plan are executed serially, but the WHERE clause of an UPDATE or a DELETE statement may be executed in parallel. The actual data changes are then serially applied to the database.
As to your second question,
does it guarantee a communication buffer resource deadlock
Any deadlock is predicated on the query / queries being run and how they are structured and executed, SQL Server does not inherently guarantee any deadlocks on its own.
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange