22-25 April 2026

Optimized Locking in SQL Server 2025: Internals, Contention, and Concurrency

Proposed session for SQLBits 2026

TL; DR

Explore SQL Server 2025 locking internals, including Optimized Locking and Lock After Qualification. Learn how these changes reduce contention, blocking, and deadlocks, and how to analyze and optimize concurrency using DMVs and Extended Events.

Session Details

SQL Server 2025 introduces major enhancements to the locking engine, including Optimized Locking and the new Lock After Qualification strategy. These improvements fundamentally change how the engine acquires and holds locks, reducing contention and improving throughput under concurrent workloads.
In this deep dive, we will examine the internals of SQL Server’s locking behavior and how the 2025 improvements minimize unnecessary locks during query execution. We will analyze common contention scenarios—such as large updates, high concurrency workloads, and lock escalation—and demonstrate how Lock After Qualification defers lock acquisition until rows are fully qualified, thereby reducing blocking and deadlocks.
Through detailed demos using Dynamic Management Views (DMVs) and Extended Events (XEvents), you will learn how to inspect lock footprints, compare behaviors across access patterns, and evaluate strategies such as partitioning, index design, and transaction scoping. We will also discuss how these changes interact with features like RCSI, READPAST/skip locked, and explicit lock hints (UPDLOCK, HOLDLOCK, ROWLOCK) in the context of SQL Server 2025.
By the end of this session, you will have a clear understanding of SQL Server 2025’s optimized locking engine, know how to monitor and troubleshoot blocking scenarios, and be equipped to design queries and indexes that fully leverage these engine enhancements for maximum concurrency and stability.

3 things you'll get out of this session

* Understand how SQL Server 2025’s optimized locking engine changes lock acquisition and concurrency behavior * Learn how to analyze blocking, lock escalation, and contention scenarios using DMVs and Extended Events * Apply practical strategies in query design, indexing, and transactions to maximize concurrency and stability