cost threshold for parallelism
Estimated plan cost above which the optimizer considers a parallel plan.
- デフォルト
5- Range
- 0 to 32767
- Restart needed
- いいえ
- Default checked on
- SQL Server 2025
何ができるか
The cost units come from an old reference machine and are not seconds on modern hardware, which is why the default of 5 sends many small queries parallel.
デフォルト値
5. 5 (SQL Server 2025), unchanged for decades.
Check the current value
SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced FROM sys.configurations WHERE name = 'cost threshold for parallelism'; -- EXEC sp_configure 'cost threshold for 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 'cost threshold for parallelism', 50; 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
Raise it on most OLTP servers: 25-50 is a common starting point, then check CXPACKET and CXCONSUMER waits and the plans that went serial.
What can go wrong
Too high keeps large reports serial and slow.
Questions about cost threshold for parallelism
What is the default value of cost threshold for parallelism in SQL Server?
5. 5 (SQL Server 2025), unchanged for decades.
Does changing cost threshold for 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 cost threshold for parallelism?
Raise it on most OLTP servers: 25-50 is a common starting point, then check CXPACKET and CXCONSUMER waits and the plans that went serial.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Check cost threshold for 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.