<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: first_rows_N again</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Wed, 22 May 2013 12:40:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Rownum effects &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/#comment-37436</link>
		<dc:creator><![CDATA[Rownum effects &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Thu, 30 Sep 2010 18:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2771#comment-37436</guid>
		<description><![CDATA[[...] pointed out that a predicate like &#8220;rownum &lt;= N&quot; generally makes the optimizer use &#8220;first_rows(N)&#8221; optimisation methods &#8211; known in the code as first_k_rows [...]]]></description>
		<content:encoded><![CDATA[<p>[...] pointed out that a predicate like &#8220;rownum &lt;= N&quot; generally makes the optimizer use &#8220;first_rows(N)&#8221; optimisation methods &#8211; known in the code as first_k_rows [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 08/01/2009 – 15/01/2010 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/#comment-35374</link>
		<dc:creator><![CDATA[Blogroll Report 08/01/2009 – 15/01/2010 &#171; Coskan&#8217;s Approach to Oracle]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 18:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2771#comment-35374</guid>
		<description><![CDATA[[...] 23-Possible reason begin poor performing first_rows_n ? Jonathan Lewis- first_rows_N again [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 23-Possible reason begin poor performing first_rows_n ? Jonathan Lewis- first_rows_N again [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan-Marten Spit</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/#comment-35339</link>
		<dc:creator><![CDATA[Jan-Marten Spit]]></dc:creator>
		<pubDate>Wed, 27 Jan 2010 23:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2771#comment-35339</guid>
		<description><![CDATA[another problem with first rows i frequently see (at least on 10.2.0.3 and 10.0.2.4)

select
from
where
very_selective=bind
order by field1, field2

where there is an index on (field1,field2), but the query does not filter on these in any way. there is also an index on very_selective.

now to honour the first rows, oracle seems to like the index (field1,field2) to get the data &#039;already sorted&#039;, and then filters out the very_selective field, ignoring the index on it. it takes ages. we have to force the plan; accurate statistics do not help here. the first rows is a mandatory setting enforced by the application... any ideas on the mechanics here?]]></description>
		<content:encoded><![CDATA[<p>another problem with first rows i frequently see (at least on 10.2.0.3 and 10.0.2.4)</p>
<p>select<br />
from<br />
where<br />
very_selective=bind<br />
order by field1, field2</p>
<p>where there is an index on (field1,field2), but the query does not filter on these in any way. there is also an index on very_selective.</p>
<p>now to honour the first rows, oracle seems to like the index (field1,field2) to get the data &#8216;already sorted&#8217;, and then filters out the very_selective field, ignoring the index on it. it takes ages. we have to force the plan; accurate statistics do not help here. the first rows is a mandatory setting enforced by the application&#8230; any ideas on the mechanics here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henish</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/#comment-35247</link>
		<dc:creator><![CDATA[Henish]]></dc:creator>
		<pubDate>Tue, 19 Jan 2010 21:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2771#comment-35247</guid>
		<description><![CDATA[Hello Sir,

who about dynamic sampling will it help in this scenario?

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hello Sir,</p>
<p>who about dynamic sampling will it help in this scenario?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Kemp</title>
		<link>http://jonathanlewis.wordpress.com/2010/01/10/first_rows_n-again/#comment-35207</link>
		<dc:creator><![CDATA[Jeffrey Kemp]]></dc:creator>
		<pubDate>Mon, 11 Jan 2010 02:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=2771#comment-35207</guid>
		<description><![CDATA[I come across this every now and then, usually when running adhoc queries. A variation is with a ROWNUM predicate, e.g. WHERE ROWNUM&lt;=5; if there are only 4 matching rows in the table, the query will not return until it&#039;s finished the full scan.]]></description>
		<content:encoded><![CDATA[<p>I come across this every now and then, usually when running adhoc queries. A variation is with a ROWNUM predicate, e.g. WHERE ROWNUM&lt;=5; if there are only 4 matching rows in the table, the query will not return until it&#039;s finished the full scan.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
