Skip to content

Commit afce146

Browse files
authored
Merge pull request #28706 from WilliamDAssafMSFT/20231009-ol-deadlock
20231009 ol deadlock
2 parents fb1ccc1 + a56780a commit afce146

3 files changed

Lines changed: 66 additions & 16 deletions

File tree

39.3 KB
Loading

docs/relational-databases/performance/optimized-locking.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Learn about the optimized locking enhancement to the Database Engi
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: randolphwest, peskount
7-
ms.date: 10/04/2023
7+
ms.date: 10/09/2023
88
ms.service: sql
99
ms.subservice: performance
1010
ms.topic: conceptual
@@ -34,8 +34,8 @@ Optimized locking is composed of two primary components: **Transaction ID (TID)
3434

3535
For example:
3636

37-
- Without optimized locking, updating 1 million rows in a table may require 1 million exclusive (X) row locks held until the end of the transaction.
38-
- With optimized locking, updating 1 million rows in a table may require 1 million X row locks but each lock is released as soon as each row is updated, and only one TID lock will be held until the end of the transaction.
37+
- Without optimized locking, updating 1 million rows in a table might require 1 million exclusive (X) row locks held until the end of the transaction.
38+
- With optimized locking, updating 1 million rows in a table might require 1 million X row locks but each lock is released as soon as each row is updated, and only one TID lock will be held until the end of the transaction.
3939

4040
This article covers these two core concepts of optimized locking in detail.
4141

@@ -229,7 +229,7 @@ To support monitoring and troubleshooting of blocking and deadlocking with optim
229229
- Wait resource visibility
230230
- `XACT` wait resources. For more information, see `wait_resource` in [sys.dm_exec_requests (Transact-SQL)](../system-dynamic-management-views/sys-dm-exec-requests-transact-sql.md).
231231
- Deadlock graph
232-
- Under each resource in the deadlock report's `<resource-list>`, each `<xactlock>` element reports the underlying resources and specific information for locks of each member of a deadlock.
232+
- Under each resource in the deadlock report's `<resource-list>`, each `<xactlock>` element reports the underlying resources and specific information for locks of each member of a deadlock. For more information and an example, see [Optimized locking and deadlocks](../sql-server-deadlocks-guide.md#optimized-locking-and-deadlocks).
233233

234234
## Best practices with optimized locking
235235

0 commit comments

Comments
 (0)