Refactoring SQL Applications
Publisher: O'Reilly Media
Final Release Date: August 2008
Pages: 298

What can you do when database performance doesn't meet expectations? Before you turn to expensive hardware upgrades to solve the problem, reach for this book. Refactoring SQL Applications provides a set of tested options for making code modifications to dramatically improve the way your database applications function. Backed by real-world examples, you'll find quick fixes for simple problems, in-depth answers for more complex situations, and complete solutions for applications with extensive problems. Learn to:

  • Determine if and where you can expect performance gains
  • Apply quick fixes, such as limiting calls to the database in stored functions and procedures
  • Refactor tasks, such as replacing application code by a stored procedure, or replacing iterative, procedural statements with sweeping SQL statements
  • Refactor flow by increasing parallelism and switching business-inducted processing from synchronous to asynchronous
  • Refactor design using schema extensions, regular views, materialized views, partitioning, and more
  • Compare before and after versions of a program to ensure you get the same results once you make modifications

Refactoring SQL Applications teaches you to recognize and assess code that needs refactoring, and to understand the crucial link between refactoring and performance. If and when your application bogs down, this book will help you get it back up to speed.

Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyRefactoring SQL Applications

(based on 2 reviews)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 2 customers

Displaying reviews 1-2

Back to top

(1 of 1 customers found this review helpful)


Worth its Weight in Gold

By doug

from palo alto

About Me Developer

Verified Reviewer


  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Practical Authoritative
  • Well-written


    Best Uses

    • Expert
    • Intermediate
    • Novice

    Comments about oreilly Refactoring SQL Applications:

    i love this book--for many reasons. First, the lucid, conversational, but very precise prose. difficult concepts distilled to their (usually simple) essence, and delivered with authority and humility, the way only a genuine subject matter expert can do it.
    From beginning to end, the text is filled with very specific advice to specific problems, with just enough context supplied to provide the "why i did it this way" And yet it's not a cookbook--ie, it's not a sequence of reciples, though again, the book is filled with practical, valuable, and non-intuitive advice; indeed, to me it was a pleasure to read--from cover to cover, which i rarely (never?) do with technical books. But i also keep this on my desktop and refer to it like a manual.

    (4 of 4 customers found this review helpful)


    Step-by-step guide to refactoring

    By Jelrik van Hal

    from Undisclosed

    Comments about oreilly Refactoring SQL Applications:

    For developers of applications making advanced usage of SQL based database engines, "Refactoring SQL Applications" is a step-by-step guide for improvement of overal performance. St_phane Faroult takes his readers on a guided tour through the process of refactoring application code related to SQL and SQL data definition and manipulation statements: all the way from addressing possible problems to make sure they wont happen again.

    By performing tests and providing statistics of the given code on three main database types (Oracle, MSSQL and MySQL), Faroult not only gives a broad view, but also stresses the differences in implementation of the SQL standards. All this information is very useful to the application developer.

    In the first chapters, Faroult walks us through the different kinds of problems that can cause our performance issues. From problems in the client, application, code to indexing and from refactoring the iterative execution of one tiny statement to performance boosts to monster SQL statements. Everything is put into perspective: the boost gained by fixing issues most developers think of important can sometimes almost be nullified with statistics.

    The last chapter is the guide to the real world process of refactoring. Faroult correctly starts on the assessment of performance problems in code you, as a developer, do not know: as he states, most refactoring jobs are done by someone that did not write the original application code.

    The only drawback of this book might by its inaccessible language. It sometimes takes me, as a non-native speaker of English, a re-read or two to understand what the author intends to say. But of course, this book has enough useful content to compensate for that.

    Displaying reviews 1-2

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook:  $35.99
    Formats:  DAISY, ePub, Mobi, PDF
    Print & Ebook:  $49.49
    Print:  $44.99