MySQL concurrency : locking and transactions for MySQL developers and DBAs / Jesper Wisborg Krogh.
2021
QA76.9.D3
Linked e-resources
Linked Resource
Online Access
Concurrent users
Unlimited
Authorized users
Authorized users
Document Delivery Supplied
Can lend chapters, not whole ebooks
Details
Title
MySQL concurrency : locking and transactions for MySQL developers and DBAs / Jesper Wisborg Krogh.
ISBN
9781484266526 (electronic bk.)
1484266528 (electronic bk.)
9781484266533 (print)
1484266536
148426651X
9781484266519
1484266528 (electronic bk.)
9781484266533 (print)
1484266536
148426651X
9781484266519
Published
[Berkeley] : Apress, [2021]
Language
English
Description
1 online resource
Item Number
10.1007/978-1-4842-6652-6 doi
Call Number
QA76.9.D3
Dewey Decimal Classification
005.75/65
Summary
Know how locks work in MySQL and how they relate to transactions. This book explains the major role that locks play in database systems, showing how locks are essential in allowing high-concurrency workloads. You will learn about lock access levels and lock granularities from the user level as well as table locks to record and gap locks. Most importantly, the book covers troubleshooting techniques when locking becomes a pain point. Several of the lock types in MySQL have a duration of a transaction. For this reason, it is important to understand how transactions work. This book covers the basics of transactions as well as transaction isolation levels and how they affect locking. The book is meant to be your go-to resource for solving locking contention and similar problems in high-performance MySQL database applications. Detecting locking issues when they occur is the first key to resolving such issues. MySQL Concurrency provides techniques for detecting locking issues such as contention. The book shows how to analyze locks that are causing contention to see why those locks are in place. A collection of six comprehensive case studies combine locking and transactional theory with realistic lock conflicts. The case studies walk you through the symptoms to look for in order to identify which issue you are facing, the cause of the conflict, its analysis, solution, and how to prevent the issue in the future. You will: Understand which lock types exist in MySQL and how they are used Choose the best transaction isolation level for a given transaction Detect and analyze lock contention when it occurs Reduce locking issues in your applications Resolve deadlocks between transactions Resolve InnoDB record-level locking issues Resolve issues from metadata and schema locks.
Note
Includes index.
Access Note
Access limited to authorized users.
Digital File Characteristics
text file
PDF
Source of Description
Online resource; title from PDF title page (SpringerLink, viewed March 12, 2021).
Available in Other Form
Print version: 9781484266519
Linked Resources
Online Access
Record Appears in
Online Resources > Ebooks
All Resources
All Resources
Table of Contents
1. Introduction
2. Monitoring Locks and Mutexes
3. Monitoring InnoDB Transactions
4. Transactions in the Performance Schema
5. Lock Access Levels
6. High-Level Lock Types
7. InnoDB Locks
8. Working with Lock Conflicts
9. Reducing Locking Issues
10. Indexes and Foreign Keys
11. Transactions
12. Transaction Isolation Levels
13. Case Study: Flush Locks
14. Case Study: Metadata and Schema Locks
15. Case Study: Record-Level Locks
16. Case Study: Deadlocks
17. Case Study: Foreign Keys
18. Case Study: Semaphores
Appendix A. References
Appendix B. MySQL Shell Module.
2. Monitoring Locks and Mutexes
3. Monitoring InnoDB Transactions
4. Transactions in the Performance Schema
5. Lock Access Levels
6. High-Level Lock Types
7. InnoDB Locks
8. Working with Lock Conflicts
9. Reducing Locking Issues
10. Indexes and Foreign Keys
11. Transactions
12. Transaction Isolation Levels
13. Case Study: Flush Locks
14. Case Study: Metadata and Schema Locks
15. Case Study: Record-Level Locks
16. Case Study: Deadlocks
17. Case Study: Foreign Keys
18. Case Study: Semaphores
Appendix A. References
Appendix B. MySQL Shell Module.