// sql server · parallelism & workers

lightweight pooling

Switch the engine's worker scheduling from thread mode to fiber mode.

Predeterminado
0 (thread mode)
Range
0 or 1
Restart needed
Sí
Default checked on
SQL Server 2025

Lo que hace

In fiber mode workers are Windows fibers that yield cooperatively, an old answer to context-switch overhead on SMP machines. CLR execution is not supported under it, and hierarchyid methods, replication and some Policy-Based Management features misbehave in fiber mode. Deprecated in SQL Server 2025 and slated for removal, with Microsoft recommending against it in every version.

Valor predeterminado

0 (thread mode). 0 (SQL Server 2025). Deprecated from SQL Server 2025; Microsoft recommends avoiding fiber mode in any version.

Check the current value

SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced
FROM sys.configurations
WHERE name = 'lightweight pooling';

-- EXEC sp_configure 'lightweight pooling'; 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 'lightweight pooling', 0;
RECONFIGURE;
-- then restart the SQL Server service

Restart required: value_in_use changes only after the SQL Server service restarts (is_dynamic = 0). It is an advanced option, so show advanced options must be on to change it.

When to change it

Almost never. Thread mode is what every modern workload should run, and only a specific support case should ever point here.

What can go wrong

The change needs a restart to try and another to undo, and features that assume thread mode fail under it: CLR is unsupported, so hierarchyid methods and replication can break after the restart. On SQL Server 2025 the mode is deprecated and planned for removal, so building on it today has a deadline attached.

Questions about lightweight pooling

What is the default value of lightweight pooling in SQL Server?

0 (thread mode). 0 (SQL Server 2025). Deprecated from SQL Server 2025; Microsoft recommends avoiding fiber mode in any version.

Does changing lightweight pooling require a restart?

Yes. Restart required: value_in_use changes only after the SQL Server service restarts (is_dynamic = 0). It is an advanced option, so show advanced options must be on to change it.

When should I change lightweight pooling?

Almost never. Thread mode is what every modern workload should run, and only a specific support case should ever point here.

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

// one client for every engine

Check lightweight pooling 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.

Texto y datos de esta página: CC BY 4.0, con atribución a SQLly (sqlly.app). Código y fragmentos SQL: MIT. Detalles de la licencia