为什么不并行.xml
The max degree of parallelism of an instance is 0 and the cost threshold for parallelism is 5.
print @@VERSION:
Microsoft SQL Server 2019 (RTM-CU27-GDR) (KB5040948) - 15.0.4382.1 (X64)
Jul 1 2024 20:03:23
Copyright (C) 2019 Microsoft Corporation
Enterprise Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 19045: )
The actual plan is serial, and the total cost is 18.2165. After adding the query hint, the found parallel plan should be used regardless of whether the cost of the found parallel plan is higher than 18.2165. I can only think of one possibility, because there's some sort of prohibition against parallel plans, and the reason would appear in the xml NonParallelPlanReason, but it doesn't appear in this plan.
May I ask why?
Because the Chinese area post always because of violation is deleted by the system, and I do not know where the violation, so use the translator to translate into English in the English area, the translation quality may not be good, please forgive me