Skip to content

SQL Tuning Generating Optimal Execution Plans

Best in textbook rentals since 2012!

ISBN-10: 0596005733

ISBN-13: 9780596005733

Edition: 2003

Authors: Dan Tow

List price: $39.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

A poorly performing database application not only costs users time, but also has an impact on other applications running on the same computer or the same network. "SQL Tuning provides an essential next step for SQL developers and database administrators who want to extend their SQL tuning expertise and get the most from their database applications. There are two basic issues to focus on when tuning SQL: how to find and interpret the execution plan of an SQL statement and how to change SQL to get a specific alternate execution plan. "SQL Tuning provides answers to these questions and addresses a third issue that's even more important: how to find the optimal execution plan for the query to…    
Customers also bought

Book details

List price: $39.95
Copyright year: 2003
Publisher: O'Reilly Media, Incorporated
Publication date: 12/9/2003
Binding: Paperback
Pages: 336
Size: 6.97" wide x 9.13" long x 0.87" tall
Weight: 1.188
Language: English

Dan Tow is an independent consultant, operating under the banner SingingSQL (www.singingsql.com). His experience solving Oracle-related performance problems goes all the way back to his 1989 hire by Oracle Corporation. During most of his tenure at Oracle, Dan focused on the performance of Oracle Applications, managing the performance group for that division. In this role, he found a fertile testing ground for his SQL tuning method applied to the huge set of complex SQL included in those applications, including both online SQL and diverse batch processes. In 1998, Dan left Oracle to lead performance for TenFold Corporation, where he applied the same methods to tuning questions on DB2, and…    

Foreword
Preface
Introduction
Why Tune SQL?
Who Should Tune SQL?
How This Book Can Help
A Bonus
Outside-the-Box Solutions
Data-Access Basics
Caching in the Database
Tables
Indexes
Uncommon Database Objects
Single-Table Access Paths
Calculating Selectivity
Joins
Viewing and Interpreting Execution Plans
Reading Oracle Execution Plans
Reading DB2 Execution Plans
Reading SQL Server Execution Plans
Controlling Execution Plans
Universal Techniques for Controlling Plans
Controlling Plans on Oracle
Controlling Plans on DB2
Controlling Plans on SQL Server
Diagramming Simple SQL Queries
Why a New Method?
Full Query Diagrams
Interpreting Query Diagrams
Simplified Query Diagrams
Exercises
Deducing the Best Execution Plan
Robust Execution Plans
Standard Heuristic Join Order
Simple Examples
A Special Case
A Complex Example
Special Rules for Special Cases
Exercise
Diagramming and Tuning Complex SQL Queries
Abnormal Join Diagrams
Queries with Subqueries
Queries with Views
Queries with Set Operations
Exercise
Why the Diagramming Method Works
The Case for Nested Loops
Choosing the Driving Table
Choosing the Next Table to Join
Summary
Special Cases
Outer Joins
Merged Join and Filter Indexes
Missing Indexes
Unfiltered Joins
Unsolvable Problems
Outside-the-Box Solutions to Seemingly Unsolvable Problems
When Very Fast Is Not Fast Enough
Queries that Return Data from Too Many Rows
Tuned Queries that Return Few Rows, Slowly
Exercise Solutions
The Full Process, End to End
Glossary
Index