# lightweight pooling

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

Source: https://sqlly.app/sql-configuration/sql-server/lightweight-pooling
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).

**Default**

`0 (thread mode)`

**Range**

0 or 1

**Restart needed**

Yes

**Default checked on**

SQL Server 2025

## What it does

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.

## Default value

`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](https://sqlly.app/sql-configuration/sql-server), or check the [SQL Server manual](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/server-configuration-options-sql-server) for every option.

## Related SQL Server settings

- [`max worker threads` Size of the worker thread pool; 0 sizes it from the CPU count.](https://sqlly.app/sql-configuration/sql-server/max-worker-threads)
- [`affinity mask` Bitmask of the CPUs this instance's schedulers may use; 0 lets Windows place the threads.](https://sqlly.app/sql-configuration/sql-server/affinity-mask)

## Related on SQLly

- [Finding what burns CPU on a database server Performance guide](https://sqlly.app/sql-performance/high-cpu)
- [SQL Server query performance troubleshooting Performance guide](https://sqlly.app/sql-performance/sql-server)
