// sql server · parallelism & workers

max degree of parallelism

Most schedulers one parallel query operator may use; 0 means all.

默认
0
Range
0 to 32767
Restart needed
否
Default checked on
SQL Server 2025

作用

Applies instance-wide unless overridden by the MAXDOP database scoped configuration, a Resource Governor workload group or a query's OPTION (MAXDOP n) hint.

默认值

0. 0 (SQL Server 2025). Windows setup has proposed a value based on the core count since SQL Server 2019; the engine default, and this Linux container, keep 0.

Check the current value

SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced
FROM sys.configurations
WHERE name = 'max degree of parallelism';

-- EXEC sp_configure 'max degree of parallelism'; also works, but only while show advanced options is 1;
-- otherwise it fails with Msg 15123 because this is an advanced option.

Change it

EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'max degree of parallelism', 8;
RECONFIGURE;

No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1). It is an advanced option, so show advanced options must be on to change it.

When to change it

On any server with more than 8 logical processors. Microsoft's guidance: at most the number of logical processors per NUMA node, and no more than 8 for typical workloads.

What can go wrong

1 disables parallelism and slows large queries; 0 on big machines lets one query occupy every core.

The closest setting on other engines

引擎设置项默认Restart
SQL Server max degree of parallelism this page 0 否
PostgreSQL max_parallel_workers_per_gather 2 否
Oracle parallel_degree_policy MANUAL 否

Questions about max degree of parallelism

What is the default value of max degree of parallelism in SQL Server?

0. 0 (SQL Server 2025). Windows setup has proposed a value based on the core count since SQL Server 2019; the engine default, and this Linux container, keep 0.

Does changing max degree of parallelism require a restart?

No. No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1). It is an advanced option, so show advanced options must be on to change it.

When should I change max degree of parallelism?

On any server with more than 8 logical processors. Microsoft's guidance: at most the number of logical processors per NUMA node, and no more than 8 for typical workloads.

Back to all SQL Server settings, or check the SQL Server manual for every option.

// one client for every engine

Check max degree of parallelism on your own server

SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.