Hi @Nechba
The MAXDOP hint limits both the number of threads used by each parallelism operator and the total number of logical CPUs used by all the parallel operators in the query plan. See this article for detailed explains.
When changing MaxDOP to a value > 1, SQL Server has to create multiple plans for each statement, one for the parallel and one for the serial execution. So, the compilation time will be higher for all statements and the system needs more memory for storing SQL plans.
The type of execution is determined through the SQL Server optimizer at runtime, depending on the load on the system and availability of system resources. A query that can run in parallel in the morning (as system load is low) might run in serial in the afternoon with a different runtime. This is especially true for small virtual or physical machines with limited system resources.
Refer to this article: Max degree of parallelism (MaxDOP)
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.