Optimized Locking in SQL Server 2025: Internals, Contention, and Concurrency
Proposed session for SQLBits 2026TL; 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.
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
Speakers
Torsten Strauß's other proposed sessions for 2026
Analyzing Azure SQL Database Workloads with KQL Insights, Patterns, and Performance - 2026
Bicep on Azure – Building Modular and Reusable Infrastructure as Code - 2026
Deep Dive into Memory Grants:Diagnosing and Optimizing Query Performance in Azure SQL and SQL Server - 2026
End-to-End Database DevOps: Building Automated CI/CD Pipelines for Azure SQL - 2026
Hybrid Data in Motion: Near Real-Time Mirroring from SQL Server 2025 into Microsoft Fabric - 2026
Inside Data Compression in SQL Server and Azure SQL: Performance Gains, Trade-offs, and Engine Inter - 2026
Performance Unleashed: Practical Tuning for Azure SQL and SQL Server - 2026
Plan Cache Internals in SQL : Parameter Sensitive Plans, Cache Optimization, and Monitoring - 2026
Streamlined Deployments: Robust YAML CI/CD Pipelines for Azure Data Factory - 2026