<?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: A Second Rule of Thumb for Choosing Column Order in Indexes</title>
	<atom:link href="http://www.tokutek.com/2009/06/a_second_rule_of_thumb_for_choosing_column_order_in_indexes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tokutek.com/2009/06/a_second_rule_of_thumb_for_choosing_column_order_in_indexes/</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 04:10:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.tokutek.com/2009/06/a_second_rule_of_thumb_for_choosing_column_order_in_indexes/#comment-123</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Wed, 24 Jun 2009 18:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://a_second_rule_of_thumb_for_choosing_column_order_in_indexes#comment-123</guid>
		<description>Hi,

&quot;...an index of (b,a) will always be as good, and likely better, than an index of (a,b)...&quot;
A bit of understatement :)
unless this is a covering index (in your example it is), with (a,b), the &#039;b&#039; part cannot be utilized, and the index is as good as (a) for this particular query.
the (b,a) index will answer this query, and will also support queries like: WHERE b=5 AND a BETWEEN 10 AND 20 ORDER BY a DESC
etc.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>&#8220;&#8230;an index of (b,a) will always be as good, and likely better, than an index of (a,b)&#8230;&#8221;<br />
A bit of understatement <img src='http://www.tokutek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
unless this is a covering index (in your example it is), with (a,b), the &#8216;b&#8217; part cannot be utilized, and the index is as good as (a) for this particular query.<br />
the (b,a) index will answer this query, and will also support queries like: WHERE b=5 AND a BETWEEN 10 AND 20 ORDER BY a DESC<br />
etc.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

