You are on page 1of 2

Buffer Pool Parallel Scan in SQL

Server 2022
Buffer pool:

The buffer pool is the area of memory that SQL Server uses to
cache data. All pages must be copied into the buffer pool before
they can be used in a query, and it is necessary to scan the buffer
pool for a number of operations.

Buffer pool scans are a common internal operation requiring


iterating through potentially millions of buffers.

Operations that scan the buffer pool, especially on servers with


large amounts of memory, will benefit the most from the new SQL
Server 2022 Buffer Pool Parallel Scan capability.

Operations such as database startup/shutdown, creating a new


database, file drop operations, backup/restore operations, Always
On failover events, DBCC CHECKDB and DBCC Check Table, log
restore operations, and other internal operations (e.g., checkpoint)
will all benefit from Buffer Pool Parallel Scan.

Difference:

In earlier version till SQL SERVER 2019 it was serial scan.

In SQL Server 2019 and previous releases, operations that require


scanning the buffer pool can be slow, especially on large memory
machines such as the M-series Azure SQL virtual machine and large
on-premises SQL Server environments.

Currently, there’s no way to eliminate this issue prior to SQL Server


2022, and dropping buffers using DBCC DROPCLEANBUFFERS would
likely result in some degree of performance degradation as any
subsequent query executions will have to reread the data from the
database files increasing I/O.

SQL Server 2022 Buffer Pool Parallel Scan benefits

 Buffer pool scans are parallelized by utilizing multiple cores.


 Benefits both small and large database operations on larger
memory machines.
 Improvement adds buffer pool scan diagnostics to improve
supportability and insights with new buffer pool scan events.
 Customers running mission-critical OLTP, hosted service
providers, and data warehouse environments will witness the
most improvements in overall processing speed.

Reference:

https://cloudblogs.microsoft.com/sqlserver/2022/07/07/improve-
scalability-with-buffer-pool-parallel-scan-in-sql-server-2022/

You might also like