<?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: Dropping unused indexes</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/comment-page-1/#comment-446674</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Thu, 15 Jan 2009 23:51:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=588#comment-446674</guid>
		<description>Don&#039;t forget about extraordinary circumstances, such as restoring from backups, checking for corruption after a crash, etc.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget about extraordinary circumstances, such as restoring from backups, checking for corruption after a crash, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/comment-page-1/#comment-446425</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 15 Jan 2009 16:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=588#comment-446425</guid>
		<description>Pat,

Unused indexes are dead weight.  How much it hurts it is application dependent but if you do not have a discipline dealing with it over years you may get too much of it.   

Unused indexes slow down inserts but they also hurt selects because they waste time in caches.  They also make MySQL optimizer to consider more choices than it needs to. 

Finally disk space also means less hardware requirements and faster backups and other operations (such as cloning the slave)

Of course your millage may vary.</description>
		<content:encoded><![CDATA[<p>Pat,</p>
<p>Unused indexes are dead weight.  How much it hurts it is application dependent but if you do not have a discipline dealing with it over years you may get too much of it.   </p>
<p>Unused indexes slow down inserts but they also hurt selects because they waste time in caches.  They also make MySQL optimizer to consider more choices than it needs to. </p>
<p>Finally disk space also means less hardware requirements and faster backups and other operations (such as cloning the slave)</p>
<p>Of course your millage may vary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/comment-page-1/#comment-446422</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 15 Jan 2009 16:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=588#comment-446422</guid>
		<description>Jan,

This works for both MyISAM and Innodb tables. As I mentioned this requires Percona Extensions to work. See the link in the bottom of the page.</description>
		<content:encoded><![CDATA[<p>Jan,</p>
<p>This works for both MyISAM and Innodb tables. As I mentioned this requires Percona Extensions to work. See the link in the bottom of the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pat</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/comment-page-1/#comment-446417</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Thu, 15 Jan 2009 16:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=588#comment-446417</guid>
		<description>Plus doesn&#039;t dropping the index lock the table for the duration? 

I remain skeptical of the utility of dropping unused (or rarely used) indexes.

The load on most web applications is heavily weighted towards SELECT operations and there&#039;s little downside to having &quot;too many&quot; indexes in that case. Only thing its really going to cost you is insert/update/delete time and some disk space.

To be sure, there will be cases where you&#039;ve got an update bound workload and removing useless indexes is the solution, but, at least for the kind of applications I work with, that&#039;s very much the edge case.</description>
		<content:encoded><![CDATA[<p>Plus doesn&#8217;t dropping the index lock the table for the duration? </p>
<p>I remain skeptical of the utility of dropping unused (or rarely used) indexes.</p>
<p>The load on most web applications is heavily weighted towards SELECT operations and there&#8217;s little downside to having &#8220;too many&#8221; indexes in that case. Only thing its really going to cost you is insert/update/delete time and some disk space.</p>
<p>To be sure, there will be cases where you&#8217;ve got an update bound workload and removing useless indexes is the solution, but, at least for the kind of applications I work with, that&#8217;s very much the edge case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/15/dropping-unused-indexes/comment-page-1/#comment-446415</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=588#comment-446415</guid>
		<description>Is it possible to find unused index also on a MyISAM table? The above query says &quot;#1109 - Unknown table &#039;index_statistics&#039; in information_schema&quot; at my system (MySQL 5.0.67).</description>
		<content:encoded><![CDATA[<p>Is it possible to find unused index also on a MyISAM table? The above query says &#8220;#1109 &#8211; Unknown table &#8216;index_statistics&#8217; in information_schema&#8221; at my system (MySQL 5.0.67).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
