Details

MySQL Concurrency


MySQL Concurrency

Locking and Transactions for MySQL Developers and DBAs

von: Jesper Wisborg Krogh

66,99 €

Verlag: Apress
Format: PDF
Veröffentl.: 22.01.2021
ISBN/EAN: 9781484266526
Sprache: englisch

Dieses eBook enthält ein Wasserzeichen.

Beschreibungen

<div>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.&nbsp;</div><div><br></div><div>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.&nbsp;</div><div><br></div><div>Detecting locking issues when they occur is the first key to resolving such issues. <i>MySQL Concurrency </i>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.&nbsp;</div><div><br></div><div><br></div><div><b>What You Will Learn</b></div><div><div><ul><li>Understand which lock types exist in MySQL and how they are used</li><li>Choose the best transaction isolation level for a given transaction</li><li>Detect and analyze lock contention when it occurs</li><li>Reduce locking issues in your applications</li><li>Resolve deadlocks between transactions</li><li>Resolve InnoDB record-level locking issues</li><li>Resolve issues from metadata and schema locks</li></ul></div></div><div><br></div><div><b>Who This Book Is For</b></div><div><br></div><div>Database administrators and SQL developers who are familiar with MySQL and want to gain a better understanding of locking and transactions as well as how to work with them. While some experience with MySQL is required, no prior knowledge of locks and transactions is needed.<br></div>
1. Introduction&nbsp;<div>2. Monitoring Locks and Mutexes</div><div>3. Monitoring InnoDB Transactions</div><div>4. Transactions in the Performance Schema</div><div>5. Lock Access Levels</div><div>6. High-Level Lock Types</div><div>7. InnoDB Locks</div><div>8. Working with Lock Conflicts</div><div>9. Reducing Locking Issues</div><div>10. Indexes and Foreign Keys</div><div>11. Transactions</div><div>12. Transaction Isolation Levels</div><div>13. Case Study: Flush Locks</div><div>14. Case Study: Metadata and Schema Locks</div><div>15. Case Study: Record-Level Locks&nbsp;</div><div>16. Case Study: Deadlocks&nbsp;</div><div>17. Case Study: Foreign Keys<br></div><div>18. Case Study: Semaphores</div><div>Appendix A. References</div><div>Appendix B. MySQL Shell Module</div>
<b>Jesper Wisborg Krogh</b> has worked with MySQL databases since 2006 both as a SQL developer and a database administrator, and for more than eight years as part of the Oracle MySQL Support team. He currently works as a database reliability engineer for Okta. He has spoken at MySQL Connect and Oracle OpenWorld on several occasions. In addition to his books, Jesper regularly blogs on MySQL topics and has authored approximately 800 documents in the Oracle Knowledge Base. He has contributed to the sys schema and four Oracle Certified Professional (OCP) exams for MySQL 5.6–8. Jesper holds a PhD in computational chemistry, lives in Sydney, Australia, and enjoys spending time outdoors walking, traveling, and reading. His areas of expertise include MySQL Cluster, MySQL Enterprise Backup (MEB), performance tuning, and the performance and sys schemas.
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.&nbsp;<div><br></div><div>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.&nbsp;</div><div><br></div><div>Detecting locking issues when they occur is the first key to resolving such issues.&nbsp;MySQL Concurrency&nbsp;</i>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.&nbsp;</div><div><br></div><div>You will:</div><div><ul><li>Understand which lock types exist in MySQL and how they are used</li><li>Choose the best transaction isolation level for a given transaction</li><li>Detect and analyze lock contention when it occurs</li><li>Reduce locking issues in your applications</li><li>Resolve deadlocks between transactions</li><li>Resolve InnoDB record-level locking issues</li><li>Resolve issues from metadata and schema locks</li></ul></div><div><br></div>
<p>Helps you identify and troubleshoot locking problems in MySQL</p><p>Provides six case studies demonstrating realistic locking conflicts</p><p>Explains the importance of transactions and their effect on locking</p>

Diese Produkte könnten Sie auch interessieren:

Quantifiers in Action
Quantifiers in Action
von: Antonio Badia
PDF ebook
96,29 €
Managing and Mining Uncertain Data
Managing and Mining Uncertain Data
von: Charu C. Aggarwal
PDF ebook
96,29 €