<?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: MySQL Slow? Check for Fragmentation.</title>
	<atom:link href="http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/</link>
	<description>A Behind the Scenes Look at the Best Hosting Provider in the World</description>
	<lastBuildDate>Wed, 22 May 2013 17:40:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
	<item>
		<title>By: MySQL Check For Fragmentation</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-47545</link>
		<dc:creator>MySQL Check For Fragmentation</dc:creator>
		<pubDate>Mon, 22 Apr 2013 17:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-47545</guid>
		<description>[...] I was working with a mail archive MySQL database today and was twiddling my thumbs waiting for simple queries to complete.  The database has about 12 million rows and is on a 2x2GHz 2GB Linux Server x64.  I wanted to try to optimize the database and found this little gem from Lee at SoftLayer blog post. [...]</description>
		<content:encoded><![CDATA[<p>[...] I was working with a mail archive MySQL database today and was twiddling my thumbs waiting for simple queries to complete.  The database has about 12 million rows and is on a 2x2GHz 2GB Linux Server x64.  I wanted to try to optimize the database and found this little gem from Lee at SoftLayer blog post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PC</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-47460</link>
		<dc:creator>PC</dc:creator>
		<pubDate>Wed, 17 Apr 2013 12:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-47460</guid>
		<description>Thanks Lee..</description>
		<content:encoded><![CDATA[<p>Thanks Lee..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-44136</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sun, 28 Oct 2012 23:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-44136</guid>
		<description>in your SQL statement, I reckon the data free should be greater than zero, not less than...
otherwise, good article :)</description>
		<content:encoded><![CDATA[<p>in your SQL statement, I reckon the data free should be greater than zero, not less than&#8230;<br />
otherwise, good article <img src='http://blog.softlayer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-43541</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Sun, 14 Oct 2012 23:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-43541</guid>
		<description>If your site is that important that it needs a defrag, a planned maintenance isn&#039;t the end of the world.</description>
		<content:encoded><![CDATA[<p>If your site is that important that it needs a defrag, a planned maintenance isn&#8217;t the end of the world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PJ Brunet</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-40356</link>
		<dc:creator>PJ Brunet</dc:creator>
		<pubDate>Wed, 20 Jun 2012 19:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-40356</guid>
		<description>So what&#039;s the trick to defragment automatically without taking the site offline?  If anyone knows how do to this I might be willing to pay for a solution because it seems like this is really important to keep things running fast.  I just had an issue today where I think fragmented tables took my sites offline.  After running mysqlcheck everything was fine but I had to restart mysql and nginx and this took the site offline for a few minutes--not good!  Also, is there some way to track down which queries are fragmenting the tables in the first place?  Maybe if I can find the root of the problem here...  I don&#039;t want to deal with this on a regular basis.</description>
		<content:encoded><![CDATA[<p>So what&#8217;s the trick to defragment automatically without taking the site offline?  If anyone knows how do to this I might be willing to pay for a solution because it seems like this is really important to keep things running fast.  I just had an issue today where I think fragmented tables took my sites offline.  After running mysqlcheck everything was fine but I had to restart mysql and nginx and this took the site offline for a few minutes&#8211;not good!  Also, is there some way to track down which queries are fragmenting the tables in the first place?  Maybe if I can find the root of the problem here&#8230;  I don&#8217;t want to deal with this on a regular basis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-40172</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 13 Jun 2012 18:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-40172</guid>
		<description>I believe the query you&#039;re using is incorrect. Running this:

SELECT TABLE_SCHEMA, TABLE_NAME, CONCAT(ROUND(data_length / ( 1024 * 1024 ), 2), &#039;MB&#039;) DATA, CONCAT(ROUND(data_free  / ( 1024 * 1024 ), 2), &#039;MB&#039;) FREE from information_schema.TABLES where TABLE_SCHEMA NOT IN (&#039;information_schema&#039;,&#039;mysql&#039;) and Data_free 0 is I believe what you&#039;re looking for.</description>
		<content:encoded><![CDATA[<p>I believe the query you&#8217;re using is incorrect. Running this:</p>
<p>SELECT TABLE_SCHEMA, TABLE_NAME, CONCAT(ROUND(data_length / ( 1024 * 1024 ), 2), &#8216;MB&#8217;) DATA, CONCAT(ROUND(data_free  / ( 1024 * 1024 ), 2), &#8216;MB&#8217;) FREE from information_schema.TABLES where TABLE_SCHEMA NOT IN (&#8216;information_schema&#8217;,'mysql&#8217;) and Data_free 0 is I believe what you&#8217;re looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-28470</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Wed, 28 Sep 2011 17:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-28470</guid>
		<description>Ricardo,
Perfect example of using the tools of MySQL. You are correct it will do the optimize and repair.  


There are some bugs with mysqlcheck ,  for example mysqlcheck is 0, althought the corruption is detected. I do believe this was fixed for and I noticed this on a recent upgrade of MySQL using mysql_upgrade. There is no reason not to trust MySQL tools.

Thank you.</description>
		<content:encoded><![CDATA[<p>Ricardo,<br />
Perfect example of using the tools of MySQL. You are correct it will do the optimize and repair.  </p>
<p>There are some bugs with mysqlcheck ,  for example mysqlcheck is 0, althought the corruption is detected. I do believe this was fixed for and I noticed this on a recent upgrade of MySQL using mysql_upgrade. There is no reason not to trust MySQL tools.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Klein</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-28283</link>
		<dc:creator>Ricardo Klein</dc:creator>
		<pubDate>Wed, 21 Sep 2011 12:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-28283</guid>
		<description>Lee,

why not use only:
mysqlcheck -Aao -auto-repair -u root -p&quot;$MYSQLPWD&quot;

I mean, this will rebuild and optimize all tables in the MySQL instance... like your script, right?</description>
		<content:encoded><![CDATA[<p>Lee,</p>
<p>why not use only:<br />
mysqlcheck -Aao -auto-repair -u root -p&#8221;$MYSQLPWD&#8221;</p>
<p>I mean, this will rebuild and optimize all tables in the MySQL instance&#8230; like your script, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-27402</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Fri, 19 Aug 2011 15:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-27402</guid>
		<description>Rob,
You are correct, for a site that relies on the the database, you will need to discover other ways. One way I use this is to run the script on the slave and then change my config script to use the slave and rebuild the master. This usually takes less than 1 sec.  So there should be no impact to SEO.</description>
		<content:encoded><![CDATA[<p>Rob,<br />
You are correct, for a site that relies on the the database, you will need to discover other ways. One way I use this is to run the script on the slave and then change my config script to use the slave and rebuild the master. This usually takes less than 1 sec.  So there should be no impact to SEO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://blog.softlayer.com/2011/mysql-slow-check-for-fragmentation/comment-page-1/#comment-27373</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 16 Aug 2011 14:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.softlayer.com/2011/#comment-27373</guid>
		<description>My entire web site is 100% data-driven. If I lock the tables, it will bring the entire web site down for a while.  The Googlebots are hitting my web site every 30 to 90 seconds. If the site is down when the Googlebot comes and the bot sees that the site is down, it can hurt me in the rankings.  How fast the site responds is part of Google&#039;s algorithm.  It would be nice to copy the entire file some place else, defrag it and then move it back.</description>
		<content:encoded><![CDATA[<p>My entire web site is 100% data-driven. If I lock the tables, it will bring the entire web site down for a while.  The Googlebots are hitting my web site every 30 to 90 seconds. If the site is down when the Googlebot comes and the bot sees that the site is down, it can hurt me in the rankings.  How fast the site responds is part of Google&#8217;s algorithm.  It would be nice to copy the entire file some place else, defrag it and then move it back.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
