• Complain

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

Here you can read online Lisa Bohm - Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2020, publisher: Apress, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Lisa Bohm Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications
  • Book:
    Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2020
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 isnt just found in queries and external applications. Its 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

Lisa Bohm: author's other books


Who wrote Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications? Find out the surname, the name of the author of the book and a list of all author's works by series.

Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents
Landmarks
Lisa Bohm Refactoring Legacy T-SQL for Improved Performance Modern Practices - photo 1
Lisa Bohm
Refactoring Legacy T-SQL for Improved Performance
Modern Practices for SQL Server Applications
Lisa Bohm Chardon OH USA Any source code or other supplementary material - photo 2
Lisa Bohm
Chardon, OH, USA

Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the books product page, located at www.apress.com/9781484255803 . For more detailed information, please visit http://www.apress.com/source-code .

ISBN 978-1-4842-5580-3 e-ISBN 978-1-4842-5581-0
https://doi.org/10.1007/978-1-4842-5581-0
Lisa Bohm 2020
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

This book is dedicated to Allen White, who has been my friend as well as helped me grow into a valued member of the community, and taught me how important it is to keep giving back and helping others.

Introduction

What is legacy code? There are a few definitions floating around out there, but as a working definition, were going to use the following:

Legacy code is code that is no longer being actively supported by the people who wrote it.

Why are we going to use that? In software development, good documentation goes a long way. Developers should understand what code is trying to accomplish and how its trying to do so. When documentation either doesnt exist or isnt as thorough as required and the original programmers arent available if you need to know why something was written a particular way, it can be a nightmare to fix. In some cases, it may not even be clear whether code ever worked as intended, or if the functionality of the change someone is requesting is within the original intent of the programmer(s).

A Tale of Woe

How does legacy code start? Lets look at this story. Code is written to solve a problem for example, someone is copying data into Excel every day and doing some hand manipulation to generate a graph to add to a larger report. A developer sets up a quick application to pull the data from the database and export it into Excel automatically for the user, also performing the calculations the user was doing by hand.

This user then trains their successor and another person in the department on how to view this report. One of them says, Hey, this is great! Can you also make it pull data for this other report and we can show how these numbers reflect against each other? Someone else loves the additional functionality but needs the code to work in a different way, or do different statistical calculations, or needs to add an additional field on the report. That persons manager is intrigued by the functionality and wants a weekly summary report to review. Code structure starts to resemble something that is cobbled together, as multiple developers add bits of functionality over time. Oftentimes, there is little to no documentation on the functionality or the choice of code everyone just adds a bunch of lines at the end of the code to handle the small part they were asked to develop.

Many times, front-end developers dont specialize in T-SQL, so do not usually have a deep understanding of the SQL Server optimizer. Especially in the case of lets just add lines of code to the bottom of this to handle additional functionality, calls to the database can increase exponentially; in many cases, calls grab the same data over and over. And, oh, by now, over half the company is using this app in one way or another or perhaps three ways. The vast majority of these uses, by the way, were never intended by anyone who had ever touched the code.

Users complain about slowness and performance. Even more frustrating, all of the other business-critical applications that use the same database(s) become slower and slower as they fight for resources and locks with the application and its chatty data calls. Also, of course, every developer that has ever touched this application has moved on or has been promoted and hasnt looked at code for years, so has no recollection of ever manipulating any code even remotely similar to this patched-together behemoth that is rampaging through the company infrastructure.

Congratulations!

You have inherited one of these types of applications, or you probably wouldnt be here reading this book. Although there will be (possibly many) times that you may want to cry, yell, or swear, this will also give you some unparalleled opportunities to be a hero and pull off some very spectacular-seeming fixes. Just remember, though, that when you really fix something amazing, most people will be completely oblivious to that fact. Then, when you do something you think is so obvious that a worm out there on the sidewalk could probably manage it, you may get so many congratulations and thanks that youll wonder if you really did something magical. That is probably more of a general life/job observation and not related specifically to legacy code, but its also prevalent here.

What This Book Is
This book is meant to help you, the reader, step in and identify potential issues in a specific database object relatively quickly. There are a few assumptions that go with this:
  1. Hardware/hardware configuration/VM configuration has been ruled out as the performance problem.

  2. External sources have been ruled out as the problem (although we all know its really the network).

  3. The database objects that are causing concern have been identified.

We are going to continue on from the point of Okay, this has been identified as an issue. Now what do I do with it? Most of what well be doing is actually looking at the code with the help of a few performance measures and learning about best practices to help identify problem areas. You should be familiar with basic T-SQL coding syntax and techniques and how to do a bit more advanced querying.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications»

Look at similar books to Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications»

Discussion, reviews of the book Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.