Hello, you are not logged in.  Login or sign up
Toad on Twitter Follow Toad Search Toad World Search
Blogger List   

All Recent Blog Entries
 

Johannes Ahrends
Unicode and Toad

Ben Boise
Toad SC Discussions

Kevin Dalton
Benchmark Factory

Steven Feuerstein
PL/SQL Obsession

Devin Gallagher
Toad SC discussions

Stuart Hodgins
JProbe Discussions

  Henrik "Mauritz" Johnson
Toad Tips & Tricks on the "other" Toads
  Mark Kurtz
Toad SC discussions
  Michael Lumbard
Toad SC discussions
Daniel Norwood
Toad for Data Analysts,
Toad Extension for Visual Studio
Debbie Peabody
Toad for Data Analysts
Gary Piper
Toad Reports Manager
John Pocknell
Toad for Oracle, JProbe
Kuljit Sangha
Toad SC discussions
Bert Scalzo Indicates Oracle ACE status
Toad for Oracle, Data Modeling, Benchmarking
Jeff Smith
Toad product family
Richard To
SQL Optimization
Jim Wankowski
DB2 - LUW and z/OS
John Weathington
  Toad World Editor
Toad World issues

  Toad Data Modeler Opens in a new window
Data Modeling
 
  Real Automated Code Testing for Oracle
Quest Code Tester blog

Blogs
Toad and Database Commentaries

Toad World blogs are a mix of insightful how-tos from Quest experts as well as their commentary on experiences with new database technologies.  Have some views of your own to share?  Post your comments!  Note:  Comments are restricted to registered Toad World users.

Do you have a topic that you'd like discussed?  We'd love to hear from you.  Send us your idea for a blog topic.

How to use Quest SQL Optimizer to tune complex SQL - A real life example #2
 
Location: Blogs Richard To's Blog    
 RichardTo Wednesday, February 04, 2009 10:35 AM
In a previous blog http://www.toadworld.com/Community/Blogs/tabid/67/EntryID/324/Default.aspx I discussed a real life example of “How to use Quest SQL Optimizer to tune complex SQL”. I spent two days installing the database and another two days tuning a complicated SQL statement, which originally the SQL statement executed in 8 hours and was tuned down to 1 minute and 28 seconds using Quest SQL Optimizer. This SQL statement is now almost 320 times faster than the original SQL statement.

But there was another complex SQL statement that was waiting for me to tune, and I had only one day left from the original 5 days I was given to to tune these problem SQL statements. Normally, I am very confident that I could tune any SQL within a reasonable amount of time. The issue that I had with the Case 2 SQL statement was that it took more than 8 hours to execute. Given that I had only one day to find a better alternative, I could not do even one test run for any alternative, nor did  I have the luxury to completely execute the original SQL since executing it took longer than the time I had left to find the best alternative. It was my first experience where I had to tune a SQL statement where I did not know the actual run time of the original SQL statement I was trying to improve.

DOWNLOAD PDF:  A Real Life Example 2  (1.1 MB)

Permalink |  Trackback
Search Blog Entries
 
Copyright 2010 by Quest Software  | Terms Of Use | Privacy Statement | Contact Us