The cut-off value is for the whole query, not an individual operator. Also, it is for the serial plan. I.e. force a serial plan and look at the estimated subtree cost for the whole query. This is what the sp_configure value is compared to.
Parallelism when execution cost lower than Cost of parallelism
why is that.? my cost of parallelism is default 5
11 answers
Sort by: Most helpful
-
-
Andrew Bainbridge 1 Reputation point
2020-08-19T09:01:27.317+00:00 Hi,
During compilation, the optimizer will consider a serial plan. If the cost of the serial plan exceeds your threshold of 5, the optimizer will then consider a parallel plan. If the parallel plan is less costly than the serial plan, SQL will use that. So, I'd guess that the serial plan cost was > 5, though the parallel plan is not. You could try forcing a serial plan with a query hint to see what the cost is.
Thanks
Andrew -
sakuraime 2,326 Reputation points
2020-08-22T09:54:27.213+00:00 the cost of this plan shown in the screen is the total subtree cost.
-
tibor_karaszi@hotmail.com 4,311 Reputation points
2020-08-22T12:44:50.933+00:00 You are showing us one operator in the plan, with its subtree cost of 2.426. What is relevant is the subtree cost for the whole plan! The subtree cost you see for the outermost Select operator.
-
sakuraime 2,326 Reputation points
2020-08-23T02:25:50.817+00:00 no . that's point to the "select" operator already