Create bookmark
SQL Tuning
Notes
Please login to add notes
- Table of Contents
- Foreword
- + Preface
- + Introduction
-
+
Data-Access Basics
- + Viewing and Interpreting Execution Plans
-
+
Controlling Execution Plans
-
+
Universal Techniques for Controlling Plans
- Enabling Use of the Index You Want
- Preventing Use of the Wrong Indexes
- + Enabling the Join Order You Want
- Preventing Join Orders You Do Not Want
- Forcing Execution Order for Outer Queries and Subqueries
- Providing the Cost-Based Optimizer with Good Data
- Fooling the Cost-Based Optimizer with Incorrect Data
-
+
Controlling Plans on Oracle
-
+
Controlling Plans on DB2
- + Controlling Plans on SQL Server
-
+
Universal Techniques for Controlling Plans
- + Diagramming Simple SQL Queries
- + Deducing the Best Execution Plan
-
+
Diagramming and Tuning Complex SQL Queries
-
+
Abnormal Join Diagrams
-
+
Cyclic Join Graphs
- Case 1: Two one-to-one master tables share the same detail table
- Case 2: Master-detail tables each hold copies of a foreign key that points tothesame third tabl...
- Case 3: Two-node filter (nonunique on both ends) between nodes is already linked through normal j...
- Case 4: Multipart join from two foreign keys is spread over two tables toamultipart primary key
- Cyclic join summary
- Disconnected Query Diagrams
- + Query Diagrams with Multiple Roots
- Joins with No Primary Key
- + One-to-One Joins
- + Outer Joins
-
+
Cyclic Join Graphs
- + Queries with Subqueries
- + Queries with Views
- Queries with Set Operations
- Exercise
-
+
Abnormal Join Diagrams
- + Why the Diagramming Method Works
- + Special Cases
- + Outside-the-Box Solutions to Seemingly Unsolvable Problems
- + Exercise Solutions
- + The Full Process, End to End
- Glossary
- Index
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 use. Author Dan Tow outlines a timesaving method he's developed for finding the optimum execution plan--rapidly and systematically--regardless of the complexity of the SQL or the database platform being used. You'll learn how to understand and control SQL execution plans and how to diagram SQL queries to deduce the best execution plan for a query. Key chapters in the book include exercises to reinforce the concepts you've learned. SQL Tuning concludes by addressing special concerns and unique solutions to "unsolvable problems." Whether you are a programmer who develops SQL-based applications or a database administrator or other who troubleshoots poorly tuned applications, SQL Tuning will arm you with a reliable and deterministic method for tuning your SQL queries to gain optimal performance.
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Database Management > General
Publishers
Publication year : 2007
License: All rights reserved ©
Times read: 701

