MySQL Concurrency: Locking and Transactions for MySQL Developers and Dbas
暫譯: MySQL 並發:MySQL 開發者與 DBA 的鎖定與交易管理

Krogh, Jesper Wisborg

  • 出版商: Apress
  • 出版日期: 2021-01-23
  • 定價: $2,450
  • 售價: 8.0$1,960
  • 語言: 英文
  • 頁數: 376
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 148426651X
  • ISBN-13: 9781484266519
  • 相關分類: MySQLSQL
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

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.

What You Will Learn

  • 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

Who This Book Is For
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.

商品描述(中文翻譯)

了解 MySQL 中鎖的運作方式及其與交易的關係。本書解釋了鎖在資料庫系統中的主要角色,顯示鎖在允許高併發工作負載中是多麼重要。您將學習鎖的存取層級和鎖的粒度,從使用者層級到表鎖、記錄鎖和間隙鎖。最重要的是,本書涵蓋了當鎖成為痛點時的故障排除技術。

MySQL 中的幾種鎖類型具有交易的持續時間。因此,了解交易的運作方式非常重要。本書涵蓋了交易的基本概念以及交易隔離級別及其對鎖的影響。本書旨在成為您解決鎖競爭和類似問題的首選資源,特別是在高效能的 MySQL 資料庫應用中。

當鎖定問題發生時,檢測這些問題是解決此類問題的第一步。《MySQL Concurrency》提供了檢測鎖定問題(如競爭)的技術。本書展示了如何分析導致競爭的鎖,以了解這些鎖存在的原因。一系列六個全面的案例研究將鎖定和交易理論與現實的鎖衝突結合在一起。這些案例研究將引導您了解需要注意的症狀,以識別您面臨的問題、衝突的原因、分析、解決方案以及如何在未來防止此問題。

您將學到的內容:
- 了解 MySQL 中存在的鎖類型及其使用方式
- 為特定交易選擇最佳的交易隔離級別
- 當鎖競爭發生時檢測和分析
- 減少應用程式中的鎖定問題
- 解決交易之間的死鎖
- 解決 InnoDB 記錄級鎖定問題
- 解決來自元資料和架構鎖的問題

本書適合對象:
資料庫管理員和熟悉 MySQL 的 SQL 開發人員,想要更深入了解鎖定和交易以及如何與之互動。雖然需要對 MySQL 有一定的經驗,但不需要事先了解鎖和交易的知識。

作者簡介

Jesper Wisborg Krogh 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.

作者簡介(中文翻譯)

Jesper Wisborg Krogh 自 2006 年以來一直從事 MySQL 數據庫的工作,擔任 SQL 開發人員和數據庫管理員,並在 Oracle MySQL 支援團隊中工作了超過八年。他目前擔任 Okta 的數據庫可靠性工程師。他曾多次在 MySQL Connect 和 Oracle OpenWorld 上發表演講。除了他的書籍外,Jesper 定期在 MySQL 主題上撰寫部落格,並在 Oracle 知識庫中撰寫了大約 800 篇文件。他對 sys schema 和四個 Oracle 認證專業人員 (OCP) 考試(針對 MySQL 5.6-8)做出了貢獻。Jesper 擁有計算化學的博士學位,居住在澳大利亞悉尼,喜歡在戶外散步、旅行和閱讀。他的專業領域包括 MySQL Cluster、MySQL Enterprise Backup (MEB)、性能調優以及性能和 sys schema。