𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Expert SQL Server Transactions and Locking: Concurrency Internals for SQL Server Practitioners

✍ Scribed by Dmitri Korotkevitch


Publisher
Apress
Year
2018
Tongue
English
Leaves
326
Edition
1
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Master SQL Server’s Concurrency Model so you can implement high-throughput systems that deliver transactional consistency to your application customers. This book explains how to troubleshoot and address blocking problems and deadlocks, and write code and design database schemas to minimize concurrency issues in the systems you develop.
SQL Server’s Concurrency Model is one of the least understood parts of the SQL Server Database Engine. Almost every SQL Server system experiences hard-to-explain concurrency and blocking issues, and it can be extremely confusing to solve those issues without a base of knowledge in the internals of the Engine. While confusing from the outside, the SQL Server Concurrency Model is based on several well-defined principles that are covered in this book.
Understanding the internals surrounding SQL Server’s Concurrency Model helps you build high-throughput systems in multi-user environments. This book guides you through the Concurrency Model and elaborates how SQL Server supports transactional consistency in the databases. The book covers all versions of SQL Server, including Microsoft Azure SQL Database, and it includes coverage of new technologies such as In-Memory OLTP and Columnstore Indexes.

What You'll Learn
● Know how transaction isolation levels affect locking behavior and concurrency
● Troubleshoot and address blocking issues and deadlocks
● Provide required data consistency while minimizing concurrency issues
● Design efficient transaction strategies that lead to scalable code
● Reduce concurrency problems through good schema design
● Understand concurrency models for In-Memory OLTP and Columnstore Indexes
● Reduce blocking during index maintenance, batch data load, and similar tasks

Who This Book Is For
SQL Server developers, database administrators, and application architects who are developing highly-concurrent applications. The book is for anyone interested in the technical aspects of creating and troubleshooting high-throughput systems that respond swiftly to user requests.

✦ Table of Contents


Front Matter ....Pages i-xix
Data Storage and Access Methods (Dmitri Korotkevitch)....Pages 1-24
Transaction Management and Concurrency Models (Dmitri Korotkevitch)....Pages 25-46
Lock Types (Dmitri Korotkevitch)....Pages 47-72
Blocking in the System (Dmitri Korotkevitch)....Pages 73-107
Deadlocks (Dmitri Korotkevitch)....Pages 109-136
Optimistic Isolation Levels (Dmitri Korotkevitch)....Pages 137-157
Lock Escalation (Dmitri Korotkevitch)....Pages 159-173
Schema and Low-Priority Locks (Dmitri Korotkevitch)....Pages 175-189
Lock Partitioning (Dmitri Korotkevitch)....Pages 191-201
Application Locks (Dmitri Korotkevitch)....Pages 203-211
Designing Transaction Strategies (Dmitri Korotkevitch)....Pages 213-223
Troubleshooting Concurrency Issues (Dmitri Korotkevitch)....Pages 225-267
In-Memory OLTP Concurrency Model (Dmitri Korotkevitch)....Pages 269-294
Locking in Columnstore Indexes (Dmitri Korotkevitch)....Pages 295-311
Back Matter ....Pages 313-320

✦ Subjects


Microsoft SQL Server; Transaction Processing; Concurrency; Database Locking; OLTP; Microsoft Azure; Relational Databases; SQL


πŸ“œ SIMILAR VOLUMES


Expert SQL Server Transactions and Locki
✍ Dmitri Korotkevitch πŸ“‚ Library πŸ“… 2018 πŸ› Apress 🌐 English

Master SQL Server’s Concurrency Model so you can implement high-throughput systems that deliver transactional consistency to your application customers. This book explains how to troubleshoot and address blocking problems and deadlocks, and write code and design database schemas to minimize concurre

SQL Server Concurrency: Locking, Blockin
✍ Kalen Delaney πŸ“‚ Library πŸ› Red Gate Books 🌐 English

If you've designed your SQL code intelligently, and implemented a sensible indexing strategy, there's a good chance your queries will "fly", when tested in isolation. In the real world, however, where multiple processes can access the same data at the same time, SQL Server often has to make one proc

SQL Server Concurrency Locking, Blockin
✍ Kalen Delaney πŸ“‚ Library πŸ“… 2012 πŸ› Simple Talk Publishing 🌐 English

Your application can have impeachable indexes and queries, but they wont help you if you cant get to your data because another application has it locked. Thats why every DBA and developer must understand SQL Server concurrency and how to troubleshoot excessive blocking or deadlocking. If youve desi

Advanced Transact-SQL for SQL Server 200
✍ Itzik Ben-Gan, Tom Moreau πŸ“‚ Library πŸ“… 2000 πŸ› Apress 🌐 English

problem 1 is that the authors obviously aren't developers. they're a couple of guys who like sql puzzles. much of the code in this book has little or no practical value. you should not use it in production systems because it will not perform well and will be difficult to maintain. it's like they're

Advanced Transact-SQL for SQL Server 200
✍ Itzik Ben-Gan πŸ“‚ Library πŸ“… 2000 🌐 English

This book explores the powerful capabilities of T-SQL and helps you to exploit them to the max. The book tackles advanced areas in T-SQL such as joins, subqueries, stores procedures, triggers, user-defined functions, indexed views, cascading actions, federated views, hierarchial structures and more.

Advanced Transact-SQL for SQL Server 200
✍ Itzik Ben-Gan, Tom Moreau Ph.D. (auth.) πŸ“‚ Library πŸ“… 2000 πŸ› Apress 🌐 English

<p><p>In <i>Advanced Transact-SQL for SQL Server 2000</i>, authors <strong>Itzik Ben-Gan</strong> and <strong>Thomas Moreau</strong> explore the powerful capabilities of Transact-SQL (T-SQL). Ben-Gan and Moreau offer solutions to common problems encountered using all versions of SQL Server, with a f