© Dmitri Korotkevitch 2016

Dmitri Korotkevitch, Pro SQL Server Internals, 10.1007/978-1-4842-1964-5_24

24. Designing Transaction Strategies

Dmitri Korotkevitch

(1)Tampa, Florida, USA

This rather short chapter provides a set of generic guidelines for how you can design transaction strategies and improve concurrency in the systems.

Considerations and Code Patterns

Blocking occurs when multiple sessions compete for the same set of resources. Sessions are trying to acquire incompatible locks on them, which leads to lock collision and blocking.

As you already know, SQL Server acquires the locks when it processes data. It does not matter how many rows need to be modified or returned to the client. What matters is how many rows SQL Server accesses during ...

Get Pro SQL Server Internals, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.