<?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: How to improve subqueries derived tables performance</title>
	<atom:link href="http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/</link>
	<description>Everything In Life Is Random! (Personal and Work)</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:29:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Blake</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-13279</link>
		<dc:creator>Blake</dc:creator>
		<pubDate>Wed, 18 Jan 2012 20:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-13279</guid>
		<description>Check this out... new in version 5.6 - http://dev.mysql.com/doc/refman/5.6/en/from-clause-subquery-optimization.html</description>
		<content:encoded><![CDATA[<p>Check this out&#8230; new in version 5.6 &#8211; <a href="http://dev.mysql.com/doc/refman/5.6/en/from-clause-subquery-optimization.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.6/en/from-clause-subquery-optimization.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-10170</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 26 May 2010 23:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-10170</guid>
		<description>Subqueries materialize in v6 and I think they moved that into 5.4 when 6 was ditched.  I&#039;m still running v6 and it works great.</description>
		<content:encoded><![CDATA[<p>Subqueries materialize in v6 and I think they moved that into 5.4 when 6 was ditched.  I&#8217;m still running v6 and it works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP-help &#187; Log Buffer #182, a Carnival of the Vanities for DBAs</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-9651</link>
		<dc:creator>PHP-help &#187; Log Buffer #182, a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 12 Mar 2010 22:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-9651</guid>
		<description>[...] Venu Anuganti gives you tips on one of the most common MySQL frustrations: optimizing subqueries in how to improve subqueries derived tables performance. Justin Swanhart posts the way in which he Gets Linux performance information from your MySQL [...]</description>
		<content:encoded><![CDATA[<p>[...] Venu Anuganti gives you tips on one of the most common MySQL frustrations: optimizing subqueries in how to improve subqueries derived tables performance. Justin Swanhart posts the way in which he Gets Linux performance information from your MySQL [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu Anuganti Blog &#187; When indexes are created in internal temporary tables</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-9635</link>
		<dc:creator>Venu Anuganti Blog &#187; When indexes are created in internal temporary tables</dc:creator>
		<pubDate>Mon, 08 Mar 2010 23:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-9635</guid>
		<description>[...] strcmp: .. and here I thought my answe... [...]</description>
		<content:encoded><![CDATA[<p>[...] strcmp: .. and here I thought my answe&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: strcmp</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-9628</link>
		<dc:creator>strcmp</dc:creator>
		<pubDate>Mon, 08 Mar 2010 08:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-9628</guid>
		<description>.. and here I thought my answers made it clear I understood the post the same way. </description>
		<content:encoded><![CDATA[<p>.. and here I thought my answers made it clear I understood the post the same way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu Anuganti</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-9626</link>
		<dc:creator>Venu Anuganti</dc:creator>
		<pubDate>Mon, 08 Mar 2010 01:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-9626</guid>
		<description>strcmp,

the point is not about regular table indexes; all tables has indexes and they are used right. If one needs to re-write; we have enough ways to re-write and optimize the query.

But the main theme of the post is to talk about benefit of adding index on intermediate temp results and allowing an option todo so.</description>
		<content:encoded><![CDATA[<p>strcmp,</p>
<p>the point is not about regular table indexes; all tables has indexes and they are used right. If one needs to re-write; we have enough ways to re-write and optimize the query.</p>
<p>But the main theme of the post is to talk about benefit of adding index on intermediate temp results and allowing an option todo so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrii</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-9623</link>
		<dc:creator>Andrii</dc:creator>
		<pubDate>Sun, 07 Mar 2010 12:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-9623</guid>
		<description>I bet you should first calculate sums in table `aggrpt`, then join table `sub`.
What is execution time then?</description>
		<content:encoded><![CDATA[<p>I bet you should first calculate sums in table `aggrpt`, then join table `sub`.<br />
What is execution time then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: strcmp</title>
		<link>http://venublog.com/2010/03/06/how-to-improve-subqueries-derived-tables-performance/comment-page-1/#comment-9622</link>
		<dc:creator>strcmp</dc:creator>
		<pubDate>Sun, 07 Mar 2010 10:02:37 +0000</pubDate>
		<guid isPermaLink="false">http://venublog.com/?p=497#comment-9622</guid>
		<description>If you want the optimizer to start adding indexes for subquery results automatically, why not start automatically adding indexes to normal tables? There must be reasons why adding indexes is left to the humans usually.

In case of intermediate tables the arguments for your solution would be &quot;the table is deleted afterwards, so no indexes aggregate&quot;, &quot;creating an index is slow, but it would be even slower without the index&quot; and &quot;all rows are created by this statement, so there is no unknown content&quot;.

I have seen many people run into exactly the same situation, most think: There is an optimizer, so it will do this optimally, don&#039;t you think. ...</description>
		<content:encoded><![CDATA[<p>If you want the optimizer to start adding indexes for subquery results automatically, why not start automatically adding indexes to normal tables? There must be reasons why adding indexes is left to the humans usually.</p>
<p>In case of intermediate tables the arguments for your solution would be &#8220;the table is deleted afterwards, so no indexes aggregate&#8221;, &#8220;creating an index is slow, but it would be even slower without the index&#8221; and &#8220;all rows are created by this statement, so there is no unknown content&#8221;.</p>
<p>I have seen many people run into exactly the same situation, most think: There is an optimizer, so it will do this optimally, don&#8217;t you think. &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

