Parallelism when execution cost lower than Cost of parallelism

sakuraime 2,326 Reputation points
2020-08-19T08:37:11.897+00:00

18697-cop.jpg

why is that.? my cost of parallelism is default 5

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,685 questions
0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. tibor_karaszi@hotmail.com 4,311 Reputation points
    2020-08-28T19:11:20.527+00:00

    I don't understand what you are asking here. But please let me explain:

    Imagine that the cheapest serial plan that the optimizer comes up with hast the cost of 20.

    20 is higher than 5, which is your cost threshold. So, it didn't find a serial plan which is cheaper than your threshold.
    I.e., the optimizer now goes and try to find a parallell plan, and that is the one you posted.

    Since you didn't post the serial plan, we can't possibly say what the cheapest serial plan is. If you force a serial plan and post the one you get, we can see what cost it has. It should be higher than 5.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.