<?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: Oracle Parallel Query Sorting and Index Creation Performance Problems</title>
	<atom:link href="http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Amir Riaz</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-552709</link>
		<dc:creator>Amir Riaz</dc:creator>
		<pubDate>Wed, 01 Jun 2011 17:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-552709</guid>
		<description>Yes, confirmed.  it was a bug. I check our all databases 10g and 11.1.6. the problem is, when query go parallel but the data is unevenly distributed across the slave processes which increases the query execution time. in case if all the 100% of data is being assigned to a slave process. the time of serial processing is nearly equal to time of parallel processing. in fact then parallel processing take more time. 

cannot found this problem with 11.2. 

I am expecting that you write something about order by clause in 11.2 and lets open it for discussion

Thanks.</description>
		<content:encoded><![CDATA[<p>Yes, confirmed.  it was a bug. I check our all databases 10g and 11.1.6. the problem is, when query go parallel but the data is unevenly distributed across the slave processes which increases the query execution time. in case if all the 100% of data is being assigned to a slave process. the time of serial processing is nearly equal to time of parallel processing. in fact then parallel processing take more time. </p>
<p>cannot found this problem with 11.2. </p>
<p>I am expecting that you write something about order by clause in 11.2 and lets open it for discussion</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-552671</link>
		<dc:creator>Christo Kutrovsky</dc:creator>
		<pubDate>Wed, 01 Jun 2011 15:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-552671</guid>
		<description>On queries like the one in my example it is sufficient to have a parallel hint to have the query run fully in parallel.

My entire test case is documented, I invite you to study the explain plans and re-run my test case.</description>
		<content:encoded><![CDATA[<p>On queries like the one in my example it is sufficient to have a parallel hint to have the query run fully in parallel.</p>
<p>My entire test case is documented, I invite you to study the explain plans and re-run my test case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir Riaz</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-552667</link>
		<dc:creator>Amir Riaz</dc:creator>
		<pubDate>Wed, 01 Jun 2011 15:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-552667</guid>
		<description>The reason you are getting uneven distribution of rows across producer processes is, that part is running in serial. 

you did not specify parallel clause for table,  while you specify parallel clause for index. 

try 

create table big_emp parallel (degree 4)
  as select * from emp;

CREATE INDEX emp_ix ON emp (emp_id)
PARALLEL (DEGREE 4); 

It would be interesting to see the results.</description>
		<content:encoded><![CDATA[<p>The reason you are getting uneven distribution of rows across producer processes is, that part is running in serial. </p>
<p>you did not specify parallel clause for table,  while you specify parallel clause for index. </p>
<p>try </p>
<p>create table big_emp parallel (degree 4)<br />
  as select * from emp;</p>
<p>CREATE INDEX emp_ix ON emp (emp_id)<br />
PARALLEL (DEGREE 4); </p>
<p>It would be interesting to see the results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-400885</link>
		<dc:creator>Christo Kutrovsky</dc:creator>
		<pubDate>Wed, 27 Jan 2010 19:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-400885</guid>
		<description>Hi Zohar,

I don&#039;t have any metalink documents to give you. I have been able to workaround the issue in some cases, but it&#039;s mostly not going anywhere.

I do have a blog almost ready with a larger dataset, but it only confirms the issue further. i.e. not much change.</description>
		<content:encoded><![CDATA[<p>Hi Zohar,</p>
<p>I don&#8217;t have any metalink documents to give you. I have been able to workaround the issue in some cases, but it&#8217;s mostly not going anywhere.</p>
<p>I do have a blog almost ready with a larger dataset, but it only confirms the issue further. i.e. not much change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zohar</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-400825</link>
		<dc:creator>Zohar</dc:creator>
		<pubDate>Wed, 27 Jan 2010 12:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-400825</guid>
		<description>Did you find any metalink documentation since this post was made? we encounter the same problem but can&#039;t find any official documentation of the problem.</description>
		<content:encoded><![CDATA[<p>Did you find any metalink documentation since this post was made? we encounter the same problem but can&#8217;t find any official documentation of the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 13/11/2009-20/11/2009 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-387129</link>
		<dc:creator>Blogroll Report 13/11/2009-20/11/2009 &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Sun, 22 Nov 2009 21:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-387129</guid>
		<description>[...] 5-Bug on Running Parallel Query with Order by on already sorted data causes problem? Christo Kutrovsky-Oracle Parallel Query Sorting and Index Creation Performance Problems [...]</description>
		<content:encoded><![CDATA[<p>[...] 5-Bug on Running Parallel Query with Order by on already sorted data causes problem? Christo Kutrovsky-Oracle Parallel Query Sorting and Index Creation Performance Problems [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-385493</link>
		<dc:creator>Christo Kutrovsky</dc:creator>
		<pubDate>Tue, 17 Nov 2009 17:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-385493</guid>
		<description>Actually that&#039;s how I discovered this, by having big table&#039;s parallel operations take forever.

I&#039;ve tested this in 10.2.0.4, 11.1.0.7 and 11.2 base.

I will try my example with larger tables to confirm it scales the same as when I discovered this.</description>
		<content:encoded><![CDATA[<p>Actually that&#8217;s how I discovered this, by having big table&#8217;s parallel operations take forever.</p>
<p>I&#8217;ve tested this in 10.2.0.4, 11.1.0.7 and 11.2 base.</p>
<p>I will try my example with larger tables to confirm it scales the same as when I discovered this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timur Akhmadeev</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-385437</link>
		<dc:creator>Timur Akhmadeev</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-385437</guid>
		<description>Hi Christo,

an interesting observation. Have you experimented with a bigger table - for ex., 20-40M rows? Since PX is made for that type of volumes, not 400K, it is reasonable to test with appropriate data volumes, especially with such high DOPs.
I&#039;ve tried to repeat your case - but unfortunately for some reason v$pq_tqstat didn&#039;t show statistics for PX slaves as a Consumer (only Producers). That was 10.2.0.4 &amp; 10.2.0.4.2.
What Oracle version have you used?</description>
		<content:encoded><![CDATA[<p>Hi Christo,</p>
<p>an interesting observation. Have you experimented with a bigger table &#8211; for ex., 20-40M rows? Since PX is made for that type of volumes, not 400K, it is reasonable to test with appropriate data volumes, especially with such high DOPs.<br />
I&#8217;ve tried to repeat your case &#8211; but unfortunately for some reason v$pq_tqstat didn&#8217;t show statistics for PX slaves as a Consumer (only Producers). That was 10.2.0.4 &amp; 10.2.0.4.2.<br />
What Oracle version have you used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christo Kutrovsky</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-385347</link>
		<dc:creator>Christo Kutrovsky</dc:creator>
		<pubDate>Tue, 17 Nov 2009 04:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-385347</guid>
		<description>I am not aware of any such document, but I haven&#039;t been very thorough in my search.

As I said, this is semi-fixed in 11g Release 2 (11.2) so Oracle knows about it.

I will make separate post with example at some point.</description>
		<content:encoded><![CDATA[<p>I am not aware of any such document, but I haven&#8217;t been very thorough in my search.</p>
<p>As I said, this is semi-fixed in 11g Release 2 (11.2) so Oracle knows about it.</p>
<p>I will make separate post with example at some point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Cho</title>
		<link>http://www.pythian.com/news/5379/oracle-parallel-query-sorting-performance-problems/#comment-385341</link>
		<dc:creator>Dion Cho</dc:creator>
		<pubDate>Tue, 17 Nov 2009 03:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5379#comment-385341</guid>
		<description>Christo. 

Sorry for wrong word. :(

To rephrase my question -
&quot;Is there any metalink document that is registered as a bug or something on this phenomenon?&quot;</description>
		<content:encoded><![CDATA[<p>Christo. </p>
<p>Sorry for wrong word. :(</p>
<p>To rephrase my question -<br />
&#8220;Is there any metalink document that is registered as a bug or something on this phenomenon?&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

