SQL Server Concurrency (Paperback)
暫譯: SQL Server 並發控制 (平裝本)

Kalen Delaney

  • 出版商: Red gate books
  • 出版日期: 2012-09-11
  • 售價: $1,300
  • 貴賓價: 9.5$1,235
  • 語言: 英文
  • 頁數: 202
  • 裝訂: Paperback
  • ISBN: 1906434913
  • ISBN-13: 9781906434915
  • 相關分類: MSSQLSQL
  • 海外代購書籍(需單獨結帳)

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

商品描述

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 process wait, sacrificing concurrency and performance, in order that in order that all can succeed, without destroying data integrity. Transactions are at the heart of concurrency. I explain their ACID properties, the transaction isolation levels that dictate the acceptable behaviors when multiple transactions access the same data simultaneously, and SQL Server's optimistic and pessimistic models for mediating concurrent access. Pessimistic concurrency, SQL Server's default, uses locks to avoid concurrency problems. I explain all the different locks and their compatibility. I show how to control locking with hints and bound connections, and how to troubleshoot excessive blocking and deadlocking. Optimistic concurrency uses row versions to support concurrency. I explain how row versioning works, cover SQL Server's two Snapshot-based isolation levels and offer troubleshooting tips for issues such as update conflicts. Your application can have world-class indexes and queries, but they won't help you if you can't get your data, because another application has it locked. That's why every DBA and developer must understand SQL Server concurrency, and how to troubleshoot any issues. I hope my book helps!

商品描述(中文翻譯)

如果您聰明地設計了 SQL 代碼,並實施了合理的索引策略,那麼在單獨測試時,您的查詢很有可能會「飛起來」。然而,在現實世界中,當多個進程可以同時訪問相同數據時,SQL Server 通常必須讓一個進程等待,犧牲並發性和性能,以便所有進程都能成功,而不破壞數據完整性。事務是並發的核心。我將解釋它們的 ACID 屬性、決定多個事務同時訪問相同數據時可接受行為的事務隔離級別,以及 SQL Server 用於調解並發訪問的樂觀和悲觀模型。

悲觀並發是 SQL Server 的預設選項,使用鎖來避免並發問題。我將解釋所有不同的鎖及其相容性。我會展示如何使用提示和綁定連接來控制鎖定,以及如何排除過度阻塞和死鎖的問題。樂觀並發使用行版本來支持並發。我將解釋行版本控制的工作原理,涵蓋 SQL Server 的兩個基於快照的隔離級別,並提供針對更新衝突等問題的故障排除建議。

您的應用程序可以擁有世界級的索引和查詢,但如果您無法獲取數據,因為另一個應用程序已將其鎖定,那麼這些索引和查詢將無法幫助您。因此,每位 DBA 和開發人員都必須了解 SQL Server 的並發性,以及如何排除任何問題。我希望我的書能有所幫助!