<?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>Kommentarer till Stupid SQL optimization</title>
	<atom:link href="http://bitcomplex.se/webbutveckling/stupid-sql-optimization/feed/" rel="self" type="application/rss+xml" />
	<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/</link>
	<description>better living through transparency</description>
	<lastBuildDate>Fri, 30 Dec 2011 10:47:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Av: Lloyd Watkin</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-95</link>
		<dc:creator>Lloyd Watkin</dc:creator>
		<pubDate>Thu, 09 Sep 2010 16:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-95</guid>
		<description>You seem to be using date always, why not make it the second key in the index and make `item_id` the last one, that way no need to include `</description>
		<content:encoded><![CDATA[<p>You seem to be using date always, why not make it the second key in the index and make `item_id` the last one, that way no need to include `</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Eli</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-96</link>
		<dc:creator>Eli</dc:creator>
		<pubDate>Thu, 09 Sep 2010 16:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-96</guid>
		<description>Any reason you didn&#039;t just use the &#039;USE INDEX&#039; or &#039;FORCE INDEX&#039; parameters to your query to tell MySQL the index you wanted?   It&#039;s always worked for me in the past when it wasn&#039;t behaving.

Docs:
http://dev.mysql.com/doc/refman/5.1/en/index-hints.html</description>
		<content:encoded><![CDATA[<p>Any reason you didn&#8217;t just use the &#8216;USE INDEX&#8217; or &#8216;FORCE INDEX&#8217; parameters to your query to tell MySQL the index you wanted?   It&#8217;s always worked for me in the past when it wasn&#8217;t behaving.</p>
<p>Docs:<br />
<a href="http://dev.mysql.com/doc/refman/5.1/en/index-hints.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/index-hints.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: bitcomplex</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-98</link>
		<dc:creator>bitcomplex</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-98</guid>
		<description>Since MySQL stops using the remainder of the index as soon as it find a range the where clause would never be able to use the item_id part of the index.</description>
		<content:encoded><![CDATA[<p>Since MySQL stops using the remainder of the index as soon as it find a range the where clause would never be able to use the item_id part of the index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: bitcomplex</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-97</link>
		<dc:creator>bitcomplex</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-97</guid>
		<description>It used the correct (and only) index to begin with. It just couldn&#039;t use more than the first part/column of it.</description>
		<content:encoded><![CDATA[<p>It used the correct (and only) index to begin with. It just couldn&#8217;t use more than the first part/column of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Rad</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-94</link>
		<dc:creator>Rad</dc:creator>
		<pubDate>Tue, 07 Sep 2010 19:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-94</guid>
		<description>that&#039;s why I personally prefer either ProgrSQL or even MSSQL over MySQL.
In respect to the case - have you checked your execution plan and statistics?
Cheers!</description>
		<content:encoded><![CDATA[<p>that&#8217;s why I personally prefer either ProgrSQL or even MSSQL over MySQL.<br />
In respect to the case &#8211; have you checked your execution plan and statistics?<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: bitcomplex</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-60</link>
		<dc:creator>bitcomplex</dc:creator>
		<pubDate>Sat, 04 Sep 2010 08:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-60</guid>
		<description>Simply because we do not have to, since we managed to fix it this way. ;)
No actually, the index mentioned is only a part of a larger covering index. Having two covering indices on the same table would be puhing it a bit. The table uses enough disc space as it is with Xkk rows to begin with. And it&#039;s growing constantly.</description>
		<content:encoded><![CDATA[<p>Simply because we do not have to, since we managed to fix it this way. ;)<br />
No actually, the index mentioned is only a part of a larger covering index. Having two covering indices on the same table would be puhing it a bit. The table uses enough disc space as it is with Xkk rows to begin with. And it&#8217;s growing constantly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: bitcomplex</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-93</link>
		<dc:creator>bitcomplex</dc:creator>
		<pubDate>Sat, 04 Sep 2010 08:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-93</guid>
		<description>Simply because we do not have to, since we managed to fix it this way. ;)
No actually, the index mentioned is only a part of a larger covering index. Having two covering indices on the same table would be puhing it a bit. The table uses enough disc space as it is with Xkk rows to begin with. And it&#039;s growing constantly.</description>
		<content:encoded><![CDATA[<p>Simply because we do not have to, since we managed to fix it this way. ;)<br />
No actually, the index mentioned is only a part of a larger covering index. Having two covering indices on the same table would be puhing it a bit. The table uses enough disc space as it is with Xkk rows to begin with. And it&#8217;s growing constantly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Johan Sölve</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-59</link>
		<dc:creator>Johan Sölve</dc:creator>
		<pubDate>Sat, 04 Sep 2010 08:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-59</guid>
		<description>The MysQL query optimizer is a bit dumb at times. But why not just add another index without item_id?</description>
		<content:encoded><![CDATA[<p>The MysQL query optimizer is a bit dumb at times. But why not just add another index without item_id?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Johan Sölve</title>
		<link>http://bitcomplex.se/webbutveckling/stupid-sql-optimization/#comment-92</link>
		<dc:creator>Johan Sölve</dc:creator>
		<pubDate>Sat, 04 Sep 2010 08:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://bitcomplex.se/?p=299#comment-92</guid>
		<description>The MysQL query optimizer is a bit dumb at times. But why not just add another index without item_id?</description>
		<content:encoded><![CDATA[<p>The MysQL query optimizer is a bit dumb at times. But why not just add another index without item_id?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

