Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications

Bohm, Lisa

  • 出版商: Apress
  • 出版日期: 2020-01-11
  • 售價: $1,575
  • 貴賓價: 9.5$1,496
  • 語言: 英文
  • 頁數: 236
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484255801
  • ISBN-13: 9781484255803
  • 相關分類: MSSQLSQLRefactoring
  • 立即出貨 (庫存 < 3)

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

商品描述

Breathe new life into older applications by refactoring T-SQL queries and code using modern techniques. This book shows you how to significantly improve the performance of older applications by finding common anti-patterns in T-SQL code, then rewriting those anti-patterns using new functionality that is supported in current versions of SQL Server, including SQL Server 2019. The focus moves through the different types of database objects and the code used to create them, discussing the limitations and anti-patterns commonly found for each object type in your database.
Legacy code isn't just found in queries and external applications. It's also found in the definitions of underlying database objects such as views and tables. This book helps you quickly find problematic code throughout the database and points out where and how modern solutions can replace older code, thereby making your legacy applications run faster and extending their lifetimes. Author Lisa Bohm explains the logic behind each anti-pattern, helping you understand why each pattern is a problem and showing how it can be avoided. Good coding habits are discussed, including guidance on topics such as readability and maintainability.

What You Will Learn

  • Find specific areas in code to target for performance gains
  • Identify pain points quickly and understand why they are problematic
  • Rewrite legacy T-SQL to reduce or eliminate hidden performance issues
  • Write modern code with an awareness of readability and maintainability
  • Recognize and correlate T-SQL anti-patterns with techniques for better solutions
  • Make a positive impact on application user experience in your organization


Who This Book Is For
Database administrators or developers who maintain older code, those frustrated with complaints about slow code when there is so much of it to fix, and those who want a head start in making a positive impact on application user experience in their organization

 

商品描述(中文翻譯)

透過使用現代技術重構 T-SQL 查詢和程式碼,為舊應用程式注入新的生命力。本書將向您展示如何通過查找 T-SQL 程式碼中常見的反模式,然後使用目前版本的 SQL Server(包括 SQL Server 2019)支援的新功能重寫這些反模式,從而顯著提高舊應用程式的性能。本書的重點是介紹不同類型的資料庫物件和用於創建這些物件的程式碼,並討論在資料庫中的每個物件類型中常見的限制和反模式。

遺留程式碼不僅存在於查詢和外部應用程式中,還存在於底層資料庫物件(如視圖和表)的定義中。本書將幫助您快速找到資料庫中的問題程式碼,並指出現代解決方案可以取代舊程式碼的位置和方式,從而使您的遺留應用程式運行更快並延長其壽命。作者 Lisa Bohm 解釋了每個反模式背後的邏輯,幫助您理解為什麼每個模式都是一個問題,並展示如何避免它。本書還討論了良好的編碼習慣,包括可讀性和可維護性的指導。

您將學到什麼

- 找到程式碼中的特定區域,以提升性能
- 快速識別問題點,並了解為什麼它們是問題
- 重寫遺留 T-SQL 以減少或消除隱藏的性能問題
- 以可讀性和可維護性為前提撰寫現代程式碼
- 將 T-SQL 反模式與更好解決方案的技術相關聯和對應
- 在組織中對應用程式使用者體驗產生積極影響

本書適合對象

- 維護舊程式碼的資料庫管理員或開發人員
- 對於有大量需要修復的緩慢程式碼感到沮喪的人
- 希望在組織中對應用程式使用者體驗產生積極影響的人

作者簡介

Lisa Bohm leads a team of database administrators for a software development company. Her history with legacy database code began early in her career with a summer project to rewrite the chemical inventory database for the research division of a local VA hospital. From there, she went on to building front-end web applications. When the web calls timed out, Lisa dug in to learn what databases can do. She has since transitioned into database administration, inheriting and improving legacy applications along the way. Her personal focus remains on solid database architecture and writing well-performing T-SQL.

作者簡介(中文翻譯)

Lisa Bohm是一家軟體開發公司的資料庫管理團隊的負責人。她在與遺留資料庫程式碼的歷史始於她職業生涯早期,當時她參與了一個夏季項目,重新編寫當地一家退伍軍人醫院研究部門的化學庫存資料庫。從那時起,她開始建立前端網頁應用程式。當網頁呼叫超時時,Lisa深入研究了解資料庫的功能。此後,她轉向資料庫管理,並在此過程中繼承和改進了遺留應用程式。她個人的專注仍然是穩固的資料庫架構和撰寫高效能的T-SQL。