<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Do Storage Indexes Work with Bind Variables?</title>
	<atom:link href="http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/</link>
	<description>Just another Oracle blog</description>
	<lastBuildDate>Fri, 24 May 2013 02:26:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-162109</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Sat, 03 Nov 2012 02:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-162109</guid>
		<description><![CDATA[Hi Kumar,

Sorting data can affect the compression ratio - so yes the number of blocks could be bigger or smaller depending on the order of the rows. 

Kerry]]></description>
		<content:encoded><![CDATA[<p>Hi Kumar,</p>
<p>Sorting data can affect the compression ratio &#8211; so yes the number of blocks could be bigger or smaller depending on the order of the rows. </p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar Ramalingam</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-160600</link>
		<dc:creator>Kumar Ramalingam</dc:creator>
		<pubDate>Tue, 30 Oct 2012 18:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-160600</guid>
		<description><![CDATA[Hi Kerry,
I was testing with EHCC compression and storage indexes. In my testing, first I compressed my subpartitions for query high and I ended up with 74K blocks for about 9M rows. I created another test table with the same structure of the previous (same storage attributes) and loaded the data from the partition mentioned above (that has 9M rows) with sorting on two columns. Now, after firing the query with the predicate on the sorted columns, I could get the storage indexes working perfectly.
But, when I checked the number of blocks occupied for the partition that has the sorted data, it was 20K blocks more than the unsorted partition. 
Do you know, from your testing if it shows such a behavior? Would it be a bug? Please help me out on this as you have pulled me out of trouble several times in the past with your rich information on your blog. Thanks in advance.

--Kumar Ramalingam]]></description>
		<content:encoded><![CDATA[<p>Hi Kerry,<br />
I was testing with EHCC compression and storage indexes. In my testing, first I compressed my subpartitions for query high and I ended up with 74K blocks for about 9M rows. I created another test table with the same structure of the previous (same storage attributes) and loaded the data from the partition mentioned above (that has 9M rows) with sorting on two columns. Now, after firing the query with the predicate on the sorted columns, I could get the storage indexes working perfectly.<br />
But, when I checked the number of blocks occupied for the partition that has the sorted data, it was 20K blocks more than the unsorted partition.<br />
Do you know, from your testing if it shows such a behavior? Would it be a bug? Please help me out on this as you have pulled me out of trouble several times in the past with your rich information on your blog. Thanks in advance.</p>
<p>&#8211;Kumar Ramalingam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: www.rmanbackup.com</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-24705</link>
		<dc:creator>www.rmanbackup.com</dc:creator>
		<pubDate>Tue, 05 Oct 2010 17:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-24705</guid>
		<description><![CDATA[Thank you so much for sharing this precious information with us.]]></description>
		<content:encoded><![CDATA[<p>Thank you so much for sharing this precious information with us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-23967</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 30 Sep 2010 02:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-23967</guid>
		<description><![CDATA[Indeed, but then again so is writing queries to obtain a full scan.  Great explanation above and thank you.]]></description>
		<content:encoded><![CDATA[<p>Indeed, but then again so is writing queries to obtain a full scan.  Great explanation above and thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-21967</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Tue, 14 Sep 2010 02:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-21967</guid>
		<description><![CDATA[Thanks for the update Christo. The implicit conversions are definitely a little counter intuitive. 

Kerry]]></description>
		<content:encoded><![CDATA[<p>Thanks for the update Christo. The implicit conversions are definitely a little counter intuitive. </p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Correction on Storage Index blog &#124; The Pythian Blog</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-21942</link>
		<dc:creator>Correction on Storage Index blog &#124; The Pythian Blog</dc:creator>
		<pubDate>Mon, 13 Sep 2010 22:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-21942</guid>
		<description><![CDATA[[...] is just a quick post to note that I&#8217;ve corrected my blog on Storage Indexes here, after a follow up blog from Kerry Osborne indicating an error on my [...]]]></description>
		<content:encoded><![CDATA[<p>[...] is just a quick post to note that I&#8217;ve corrected my blog on Storage Indexes here, after a follow up blog from Kerry Osborne indicating an error on my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-21941</link>
		<dc:creator>Christo Kutrovsky</dc:creator>
		<pubDate>Mon, 13 Sep 2010 22:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-21941</guid>
		<description><![CDATA[Hi Kerry,

Thanks for following up on these questions. I&#039;ve updated my blog as well with some extra information as well.]]></description>
		<content:encoded><![CDATA[<p>Hi Kerry,</p>
<p>Thanks for following up on these questions. I&#8217;ve updated my blog as well with some extra information as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Designing for Exadata: Maximizing Storage Indexes Use &#124; The Pythian Blog</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-21940</link>
		<dc:creator>Designing for Exadata: Maximizing Storage Indexes Use &#124; The Pythian Blog</dc:creator>
		<pubDate>Mon, 13 Sep 2010 22:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-21940</guid>
		<description><![CDATA[[...] for this update goes to Kerry Osborne&#8217;s blog post, who did some additional research. As a result, this update comes from [...]]]></description>
		<content:encoded><![CDATA[<p>[...] for this update goes to Kerry Osborne&#8217;s blog post, who did some additional research. As a result, this update comes from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osborne</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-21932</link>
		<dc:creator>osborne</dc:creator>
		<pubDate>Mon, 13 Sep 2010 21:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-21932</guid>
		<description><![CDATA[Good catch Flado. That was the problem. I left the example as is, but if I changed it use the correct column (col2) it behaves as it should, using the storage index.

&lt;pre&gt;
SYS@LABRAT1&gt; select /* 1111 */ count(*) from kso.skew3 where col2 = :x;

  COUNT(*)
----------
         0

Elapsed: 00:00:00.07
&lt;/pre&gt;

Thanks for pointing that out. Just makes the point a little finer by the way. That point being that implicit conversions can easily disable Storage Indexes. It&#039;s a little counter intuitive since we&#039;re not used to worrying about this issue when we&#039;re expecting full scans anyway. 

Kerry]]></description>
		<content:encoded><![CDATA[<p>Good catch Flado. That was the problem. I left the example as is, but if I changed it use the correct column (col2) it behaves as it should, using the storage index.</p>
<pre>
SYS@LABRAT1> select /* 1111 */ count(*) from kso.skew3 where col2 = :x;

  COUNT(*)
----------
         0

Elapsed: 00:00:00.07
</pre>
<p>Thanks for pointing that out. Just makes the point a little finer by the way. That point being that implicit conversions can easily disable Storage Indexes. It&#8217;s a little counter intuitive since we&#8217;re not used to worrying about this issue when we&#8217;re expecting full scans anyway. </p>
<p>Kerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flado</title>
		<link>http://kerryosborne.oracle-guy.com/2010/09/do-storage-indexes-work-with-bind-variables/#comment-21891</link>
		<dc:creator>Flado</dc:creator>
		<pubDate>Mon, 13 Sep 2010 16:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://kerryosborne.oracle-guy.com/?p=2841#comment-21891</guid>
		<description><![CDATA[quote
SYS@LABRAT1&gt; select /* 1111 */ count(*) from kso.skew3 where col1 = :x;
/quote
Is that a copy/paste error or the reason why the index is not used for &#039;1111&#039;? (note that col1 is of type NUMBER, all other tests in the block use col2)

quote
Any one got any ideas?
/quote
What if you convert the variable explicitly, as in
exec :dd:=&#039;20-OCT-2005&#039;
select count(*) from kso.skew3 where col3 = to_date(:dd,&#039;DD-MON-RRRR&#039;);
?
That&#039;s the &quot;trick&quot; I use for normal indexes...
Cheers! 
Flado]]></description>
		<content:encoded><![CDATA[<p>quote<br />
SYS@LABRAT1&gt; select /* 1111 */ count(*) from kso.skew3 where col1 = :x;<br />
/quote<br />
Is that a copy/paste error or the reason why the index is not used for &#8217;1111&#8242;? (note that col1 is of type NUMBER, all other tests in the block use col2)</p>
<p>quote<br />
Any one got any ideas?<br />
/quote<br />
What if you convert the variable explicitly, as in<br />
exec :dd:=&#8217;20-OCT-2005&#8242;<br />
select count(*) from kso.skew3 where col3 = to_date(:dd,&#8217;DD-MON-RRRR&#8217;);<br />
?<br />
That&#8217;s the &#8220;trick&#8221; I use for normal indexes&#8230;<br />
Cheers!<br />
Flado</p>
]]></content:encoded>
	</item>
</channel>
</rss>
