Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Effective SQL > Don't Tune a Query

8.6. Don't Tune a Query

On the asktom web site, I am frequently presented with a long query or a block of code and the simple request to make it go faster. Others want to know how they can do a particular operation in a certain way, where they obviously want to make Oracle behave just like Sybase, Informix, DB2, or some other database. Many times, unless there is some obvious enhancement such as bulk processing, I cannot provide any help until I know what the goal is—what they are trying to achieve with the query.

8.6.1. Understand the Question

When you look at a query, you see a set of requirements. You see joins, predicates, outer joins, and so on. But you need to understand the question being asked. I frequently see constructs like this:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint