<?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: 3 ways MySQL uses indexes</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Wed, 10 Mar 2010 01:20:14 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ted Naleid &#187; Batch Import Performance with Grails and MySQL</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-660550</link>
		<dc:creator>Ted Naleid &#187; Batch Import Performance with Grails and MySQL</dc:creator>
		<pubDate>Thu, 01 Oct 2009 05:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-660550</guid>
		<description>[...] you haven&#8217;t created many indexes before, I highly suggest reading this post on indexes on the mysql high performance blog. The executive summary is that multi-key indexes tailored to your query have a performance edge [...]</description>
		<content:encoded><![CDATA[<p>[...] you haven&#8217;t created many indexes before, I highly suggest reading this post on indexes on the mysql high performance blog. The executive summary is that multi-key indexes tailored to your query have a performance edge [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-655336</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 21 Sep 2009 17:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-655336</guid>
		<description>Jeff, 

Thanks. Great to hear our articles are are helpful for you.</description>
		<content:encoded><![CDATA[<p>Jeff, </p>
<p>Thanks. Great to hear our articles are are helpful for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-655022</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sun, 20 Sep 2009 23:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-655022</guid>
		<description>I had been working on a performance problem for a while and this article triggered a new way for me to think about it and ultimately helped me resolve it. Thanks so much for this article in particular but also all of your articles. Some really great stuff!</description>
		<content:encoded><![CDATA[<p>I had been working on a performance problem for a while and this article triggered a new way for me to think about it and ultimately helped me resolve it. Thanks so much for this article in particular but also all of your articles. Some really great stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Link Dump #1 &#124; Dmytro Shteflyuk's Home</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652321</link>
		<dc:creator>Weekly Link Dump #1 &#124; Dmytro Shteflyuk's Home</dc:creator>
		<pubDate>Mon, 14 Sep 2009 09:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652321</guid>
		<description>[...] 3 ways MySQL uses indexes [...]</description>
		<content:encoded><![CDATA[<p>[...] 3 ways MySQL uses indexes [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652275</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Mon, 14 Sep 2009 05:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652275</guid>
		<description>Right,

I think key_len is rather confusing, especially as it is length in bytes rather than key parts.  This makes this complicated  because of different length of different data types.  For example if you have  key (A,B) and see key_len=8  it may be using full index with INT fields or only   A prefix for BIGINT column.</description>
		<content:encoded><![CDATA[<p>Right,</p>
<p>I think key_len is rather confusing, especially as it is length in bytes rather than key parts.  This makes this complicated  because of different length of different data types.  For example if you have  key (A,B) and see key_len=8  it may be using full index with INT fields or only   A prefix for BIGINT column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zerkms</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652256</link>
		<dc:creator>zerkms</dc:creator>
		<pubDate>Mon, 14 Sep 2009 03:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652256</guid>
		<description>&quot;I speak later in the post you should look at key_len to see how many key parts actually used to lookup rows&quot;
In this case i hate mysql and like mssql, because mssql show what (and even how!!) index parts were used.</description>
		<content:encoded><![CDATA[<p>&#8220;I speak later in the post you should look at key_len to see how many key parts actually used to lookup rows&#8221;<br />
In this case i hate mysql and like mssql, because mssql show what (and even how!!) index parts were used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652173</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sun, 13 Sep 2009 18:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652173</guid>
		<description>Zerkms,

This is actually 2 expressions  one  A BETWEEN 5 AND 10  and second one A=5 AND B BETWEEN 5 AND 10.   Sorry for layout it is not always clear.   Indeed as I speak later in the post you should look at key_len to see how many key parts actually used to lookup rows.    in cases like A BETWEEN 5 AND 10  AND B BETWEEN 5 AND 10   the index will be used but really only for first part of the predicate using only (A) key prefix.</description>
		<content:encoded><![CDATA[<p>Zerkms,</p>
<p>This is actually 2 expressions  one  A BETWEEN 5 AND 10  and second one A=5 AND B BETWEEN 5 AND 10.   Sorry for layout it is not always clear.   Indeed as I speak later in the post you should look at key_len to see how many key parts actually used to lookup rows.    in cases like A BETWEEN 5 AND 10  AND B BETWEEN 5 AND 10   the index will be used but really only for first part of the predicate using only (A) key prefix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zerkms</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652151</link>
		<dc:creator>zerkms</dc:creator>
		<pubDate>Sun, 13 Sep 2009 09:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652151</guid>
		<description>sorry, i was not enought intent. please delete my 2 posts :-[</description>
		<content:encoded><![CDATA[<p>sorry, i was not enought intent. please delete my 2 posts :-[</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zerkms</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652148</link>
		<dc:creator>zerkms</dc:creator>
		<pubDate>Sun, 13 Sep 2009 09:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652148</guid>
		<description>&quot;So if you have index on (A,B) This index can be used to lookup rows for WHERE clauses like A=5  ;  A BETWEEN 5 AND 10 A=5 AND B BETWEEN 5 AND 10&quot;

The last part of sentense isn&#039;t clearly right: for expression A BETWEEN 5 AND 10 A=5 AND B BETWEEN 5 AND 10, only the left part of A+B index will be used. i think this fact should be noticed or sample changed to be more &quot;simple&quot;.

or i&#039;m getting wrong?</description>
		<content:encoded><![CDATA[<p>&#8220;So if you have index on (A,B) This index can be used to lookup rows for WHERE clauses like A=5  ;  A BETWEEN 5 AND 10 A=5 AND B BETWEEN 5 AND 10&#8243;</p>
<p>The last part of sentense isn&#8217;t clearly right: for expression A BETWEEN 5 AND 10 A=5 AND B BETWEEN 5 AND 10, only the left part of A+B index will be used. i think this fact should be noticed or sample changed to be more &#8220;simple&#8221;.</p>
<p>or i&#8217;m getting wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gmouse</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/12/3-ways-mysql-uses-indexes/comment-page-1/#comment-652006</link>
		<dc:creator>gmouse</dc:creator>
		<pubDate>Sat, 12 Sep 2009 17:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1097#comment-652006</guid>
		<description>It would be nice to see a larger post or article which fully describes how indices are used, also for joins. I still encounter too many people who are clueless, and it would be nice if I could provide them with a full article.</description>
		<content:encoded><![CDATA[<p>It would be nice to see a larger post or article which fully describes how indices are used, also for joins. I still encounter too many people who are clueless, and it would be nice if I could provide them with a full article.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
