<?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: Hotsos 2008, day 2</title>
	<atom:link href="http://technology.amis.nl/2008/03/04/hotsos-2008-day-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2008/03/04/hotsos-2008-day-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hotsos-2008-day-2</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Wolfgang Breitling</title>
		<link>http://technology.amis.nl/2008/03/04/hotsos-2008-day-2/#comment-5238</link>
		<dc:creator>Wolfgang Breitling</dc:creator>
		<pubDate>Tue, 11 Mar 2008 09:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=2939#comment-5238</guid>
		<description><![CDATA[&quot;for partitioned tables only? or all, Iâ€™m not sure&quot;.
My apologies if I didn&#039;t make something clear enough. I can only guess that you are referring to the problem of ending up with an incorrect low or high value for a predicate column when cloning statistics. How the CBO calculates the selectivity of equality predicates has changed dramatically from 9i to 10g. If the predicate value is outside the low_value-high_value range, 9i used num_distinct or density to calculate the selectivity which is used for row source cardinality and index access cost calculation. 10g detects the &quot;out-of-range value pred&quot; and assigns as selectivity of 1/(2*num_rows) to the predicate. Ultimately that leads to all indexes which have that column anywhere in the column list, even if it is the last column, to be assigned the same cost: blevel+2. If the cost of two or more indexes is the same, in this case if they have the same height, the index tie-break by name decides which index is being chosen. That can be very bad for the performance.
Back to your question &quot;for partitioned tables only? or all&quot;. In principle it applies to all cloning. However, you will likely encounter it more often with partitions simply because if you clone statistics you are more likely to clone the statistics of an existing partition to a new partition because that falls under regular maintenance. But it could also happen if you clone your production statistics to development, or your QA statistics to production.]]></description>
		<content:encoded><![CDATA[<p>&#8220;for partitioned tables only? or all, Iâ€™m not sure&#8221;.<br />
My apologies if I didn&#8217;t make something clear enough. I can only guess that you are referring to the problem of ending up with an incorrect low or high value for a predicate column when cloning statistics. How the CBO calculates the selectivity of equality predicates has changed dramatically from 9i to 10g. If the predicate value is outside the low_value-high_value range, 9i used num_distinct or density to calculate the selectivity which is used for row source cardinality and index access cost calculation. 10g detects the &#8220;out-of-range value pred&#8221; and assigns as selectivity of 1/(2*num_rows) to the predicate. Ultimately that leads to all indexes which have that column anywhere in the column list, even if it is the last column, to be assigned the same cost: blevel+2. If the cost of two or more indexes is the same, in this case if they have the same height, the index tie-break by name decides which index is being chosen. That can be very bad for the performance.<br />
Back to your question &#8220;for partitioned tables only? or all&#8221;. In principle it applies to all cloning. However, you will likely encounter it more often with partitions simply because if you clone statistics you are more likely to clone the statistics of an existing partition to a new partition because that falls under regular maintenance. But it could also happen if you clone your production statistics to development, or your QA statistics to production.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
