﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Richard To's Blog</title>
    <description>&lt;table&gt;
        &lt;tr&gt;
            &lt;td valign="top"&gt;&lt;img height="183" width="139" src="/Portals/0/Blog/blog-richard-to.png" /&gt;&lt;/td&gt;
            &lt;td valign="top"&gt;
            &lt;p&gt;Richard To is chief technologist and designer of Quest SQL Tuning products. Richard specializes in using AI technique to solve database performance problems.&lt;/p&gt;
            &lt;p&gt;Richard's blog helps solve problems in your SQL code, tune queries, and shares new tips, tricks, and techniques on SQL tuning.&lt;/p&gt;
            &lt;p&gt;&lt;font color="#003366" size="3"&gt;&lt;strong&gt;Recent postings on SQL tuning:&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
&lt;/table&gt;</description>
    <link>http://www.toadworld.com/BLOGS/tabid/67/BlogId/15/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>Richard To</managingEditor>
    <webMaster>webmaster@toadworld.com</webMaster>
    <pubDate>Fri, 19 Mar 2010 16:26:20 GMT</pubDate>
    <lastBuildDate>Fri, 19 Mar 2010 16:26:20 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.2.0.15477</generator>
    <item>
      <title>Optimizing SQL Part 3– Generating more SQL alternatives for simple SQL statements</title>
      <description>&lt;div&gt;
&lt;p&gt;&lt;font size="1"&gt;Written by Rene Woody&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;This blog is a &lt;a href="http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=300"&gt;continuation&lt;/a&gt; of a series about the SQL optimization process in the Batch Optimizer and the Tuning Lab modules of &lt;a href="http://www.toadworld.com/LinkClick.aspx?link=434&amp;tabid=67"&gt;Quest SQL Optimizer &lt;em&gt;for Oracle&lt;/em&gt;&lt;/a&gt;. It covers how to generate more SQL alternatives.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;When you optimize a simple SQL statement, Quest SQL Optimizer may only generate a few SQL alternatives using the default settings in the Optimizer options. It is very likely that many more alternatives can be generated, but they did not get generated because of the way the options were set.&lt;/p&gt;
&lt;p&gt;The options settings in Quest SQL Optimizer &lt;em&gt;for Oracle&lt;/em&gt; enable you to select which Oracle optimization hints are applied, include or exclude a few of the syntax transformation rules that are used, select how many driving paths will be tried, and increase or decrease the number of SQL alternatives generated.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;We’ll take a look at how you can do this using the Optimizer options. These options apply to the optimization process in both the Tuning Lab and the Batch Optimizer.&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;To open the Options window, click &lt;strong&gt;Options&lt;/strong&gt; &lt;img height="26" alt="" width="64" src="http://www.toadworld.comhttp://www.toadworld.comhttp://www.toadworld.com/Portals/0/blogimages/Richard To/RichadToBlog10242008-1.gif" /&gt;&lt;span&gt;.&lt;/span&gt; &lt;br /&gt;
     &lt;/li&gt;
    &lt;li&gt;Select &lt;strong&gt;Tuning Lab | Optimizer | Intelligence&lt;/strong&gt;. &lt;br /&gt;
     &lt;/li&gt;
    &lt;li&gt;By default, the “intelligence level” of the optimization process is set to &lt;strong&gt;&lt;span&gt;Predefined Settings&lt;/span&gt;&lt;/strong&gt; with &lt;strong&gt;level 4&lt;/strong&gt;. Change the intelligence level to 10. &lt;br /&gt;
     &lt;br /&gt;
    &lt;img height="510" alt="" width="678" src="http://www.toadworld.comhttp://www.toadworld.comhttp://www.toadworld.com/Portals/0/blogimages/Richard To/RichadToBlog11062008-1.gif" /&gt;&lt;br /&gt;
     &lt;/li&gt;
    &lt;li&gt;Level 10 selects all of the Optimization options, all of the Oracle optimization hints, and sets the quotas for the number of SQL statements that will be generated very high.&lt;br /&gt;
     &lt;br /&gt;
    &lt;img height="510" alt="" width="678" src="http://www.toadworld.comhttp://www.toadworld.comhttp://www.toadworld.com/Portals/0/blogimages/Richard To/RichadToBlog11062008-2.gif" /&gt;&lt;br /&gt;
    &lt;br /&gt;
    Applying Level 10 to your original SQL statement maximizes the possibility of finding a better alternative for you.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;em&gt;If you would like to learn more about Quest SQL Optimizer for Oracle, please visit the &lt;/em&gt;&lt;strong&gt;&lt;a href="http://sqloptimizeroracle.inside.quest.com/index.jspa"&gt;Inside SQL Optimizer for Oracle community&lt;/a&gt;.&lt;br /&gt;
 &lt;/strong&gt;&lt;/div&gt;</description>
      <link>http://www.toadworld.com/BLOGS/tabid/67/EntryID/309/Default.aspx</link>
      <author>Richard To</author>
      <comments>http://www.toadworld.com/BLOGS/tabid/67/EntryID/309/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.toadworld.com/Default.aspx?tabid=67&amp;EntryID=309</guid>
      <pubDate>Thu, 06 Nov 2008 16:10:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.toadworld.com/DesktopModules/Blog/Trackback.aspx?id=309</trackback:ping>
    </item>
  </channel>
</rss>