Refactoring SQL Applications

Overview

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 ...

See more details below
Paperback
$32.01
BN.com price
(Save 28%)$44.99 List Price
Other sellers (Paperback)
  • All (22) from $2.76   
  • New (12) from $13.14   
  • Used (10) from $2.76   
Refactoring SQL Applications

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99
BN.com price
(Save 44%)$35.99 List Price

Overview

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.

Read More Show Less

Product Details

  • ISBN-13: 9780596514976
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 8/1/2008
  • Edition number: 1
  • Pages: 304
  • Sales rank: 578,916
  • Product dimensions: 7.00 (w) x 9.10 (h) x 0.70 (d)

Meet the Author

Stephane Faroult first discovered relational databases and the SQL language back in 1983. He joined Oracle France in their early days (after a brief spell with IBM and a bout of teaching at the University of Ottawa) and soon developed an interest in performance and tuning topics. After leaving Oracle in 1988, he briefly tried to reform and did a bit of operational research, but after one year, he succumbed again to relational databases. He has been continuously performing database consultancy since then, and founded RoughSea Ltd in 1998.

Pascal L'Hermite has been working with relational databases in OLTP, production and development environments on Oracle Databases for the past 12 years and on Microsoft SQL Server for the past 5 years.

Read More Show Less

Table of Contents

Preface;
Why Refactor?;
Refactoring Database Accesses;
How This Book Is Organized;
Audience;
Assumptions This Book Makes;
Conventions Used in This Book;
Using Code Examples;
Comments and Questions;
SafariĀ® Books Online;
Acknowledgments;
Chapter 1: Assessment;
1.1 A Simple Example;
1.2 Assessing Possible Gains;
Chapter 2: Sanity Checks;
2.1 Statistics and Data Skewness;
2.2 Indexing Review;
2.3 Parsing and Bind Variables;
2.4 Bulk Operations;
2.5 Transaction Management;
Chapter 3: User Functions and Views;
3.1 User-Defined Functions;
3.2 Views;
Chapter 4: Testing Framework;
4.1 Generating Test Data;
4.2 Comparing Alternative Versions;
Chapter 5: Statement Refactoring;
5.1 Execution Plans and Optimizer Directives;
5.2 Analyzing a Slow Query;
5.3 Refactoring the Query Core;
5.4 Rebuilding the Initial Query;
Chapter 6: Task Refactoring;
6.1 The SQL Mindset;
6.2 Restructuring the Code;
Chapter 7: Refactoring Flows and Databases;
7.1 Reorganizing Processing;
7.2 Shaking Foundations;
Chapter 8: How It Works: Refactoring in Practice;
8.1 Can You Look at the Database?;
8.2 Queries of Death;
8.3 All These Fast Queries;
8.4 No Obvious Very Wrong Query;
8.5 Time to Conclude;
Scripts and Sample Programs;
Chapter 1;
Chapter 2;
Chapter 3;
Chapter 4;
Chapter 5;
Chapter 6;
Chapter 7 (MySQL);
Tools;
mklipsum and lipsum;
Roughbench;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)