<?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: Using MMM to ALTER huge tables</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 07 Nov 2009 18:35:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Log Buffer #91: a Carnival of the Vanities for DBAs</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-265983</link>
		<dc:creator>Log Buffer #91: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 04 Apr 2008 16:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-265983</guid>
		<description>[...] huge queries to huge tables. On the MySQL performance blog, Aurimas Mikalauskas walks us through using MMM to ALTER huge tables. He writes, &#8220;When it comes to changes that really require table to be rebuilt - [...]</description>
		<content:encoded><![CDATA[<p>[...] huge queries to huge tables. On the MySQL performance blog, Aurimas Mikalauskas walks us through using MMM to ALTER huge tables. He writes, &#8220;When it comes to changes that really require table to be rebuilt &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-263822</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 03 Apr 2008 03:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-263822</guid>
		<description>Another note - besides ALTER this works for other similar type of statements.   For example you can do online OPTIMIZE table this way.</description>
		<content:encoded><![CDATA[<p>Another note &#8211; besides ALTER this works for other similar type of statements.   For example you can do online OPTIMIZE table this way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-260878</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 01 Apr 2008 04:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-260878</guid>
		<description>Tobias,

In theory you can use this VIEW approach for complex migrations but in practice there can be many performance gotchas you can run into.</description>
		<content:encoded><![CDATA[<p>Tobias,</p>
<p>In theory you can use this VIEW approach for complex migrations but in practice there can be many performance gotchas you can run into.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-260876</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 01 Apr 2008 03:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-260876</guid>
		<description>Keith,

This article is by Aurimas, lets give him a credit !</description>
		<content:encoded><![CDATA[<p>Keith,</p>
<p>This article is by Aurimas, lets give him a credit !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simetrical</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-259008</link>
		<dc:creator>Simetrical</dc:creator>
		<pubDate>Fri, 28 Mar 2008 17:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-259008</guid>
		<description>This is no different from if you use master-slave replication, surely?  The only caveat there is that you need to promote one of the slaves to a master if you do this, but that shouldn&#039;t be a problem.  Wikipedia does essentially this to alter tables without downtime, and of course it uses slave replication, not master-master.</description>
		<content:encoded><![CDATA[<p>This is no different from if you use master-slave replication, surely?  The only caveat there is that you need to promote one of the slaves to a master if you do this, but that shouldn&#8217;t be a problem.  Wikipedia does essentially this to alter tables without downtime, and of course it uses slave replication, not master-master.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias Petry</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-258883</link>
		<dc:creator>Tobias Petry</dc:creator>
		<pubDate>Fri, 28 Mar 2008 13:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-258883</guid>
		<description>Great idea, but what do you do if you have to alter the structure due to better performance?
While rading this article i had an idea, i would be really happy if you could comment it:

At first you create in both Masters views which represent the new data structure (maybe you have to alter the relationship of tables). Then you will change application to use these new views instead of the old tables, because the views will later be tables.
Now you turn off one of the masters, and change the tables according to the views you have created. This will take a long long time...
When all changes are ready you can turn the master on, and it can load all changes from the master who was online. Now you have got one master with all data and the new structure. Now you can copy the data to the other master who was online all the time.</description>
		<content:encoded><![CDATA[<p>Great idea, but what do you do if you have to alter the structure due to better performance?<br />
While rading this article i had an idea, i would be really happy if you could comment it:</p>
<p>At first you create in both Masters views which represent the new data structure (maybe you have to alter the relationship of tables). Then you will change application to use these new views instead of the old tables, because the views will later be tables.<br />
Now you turn off one of the masters, and change the tables according to the views you have created. This will take a long long time&#8230;<br />
When all changes are ready you can turn the master on, and it can load all changes from the master who was online. Now you have got one master with all data and the new structure. Now you can copy the data to the other master who was online all the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Murphy</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-258620</link>
		<dc:creator>Keith Murphy</dc:creator>
		<pubDate>Fri, 28 Mar 2008 00:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-258620</guid>
		<description>Nice article Peter.  Thanks for the example!!</description>
		<content:encoded><![CDATA[<p>Nice article Peter.  Thanks for the example!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-258600</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Fri, 28 Mar 2008 00:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-258600</guid>
		<description>This is a great way to do it without having the complexity in the MySQL server from trying to do it online as Oracle might. I hope that MySQL doesn&#039;t spend too much time trying to support that. The MMM approach works for most schema changes with far less complexity and risk. But if MySQL spends time on that, then this is an opportunity for MMM as it works right now. The problem gets more interesting as you increase the number of slaves on which the change must be done.

When can we expect the merger of MMM + Maatkit (== MMMaatkit)?</description>
		<content:encoded><![CDATA[<p>This is a great way to do it without having the complexity in the MySQL server from trying to do it online as Oracle might. I hope that MySQL doesn&#8217;t spend too much time trying to support that. The MMM approach works for most schema changes with far less complexity and risk. But if MySQL spends time on that, then this is an opportunity for MMM as it works right now. The problem gets more interesting as you increase the number of slaves on which the change must be done.</p>
<p>When can we expect the merger of MMM + Maatkit (== MMMaatkit)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/comment-page-1/#comment-258569</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 27 Mar 2008 22:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2008/03/27/using-mmm-to-alter-huge-tables/#comment-258569</guid>
		<description>If you&#039;re just doing an ALTER, a simple way to do it is run:

SET SQL_LOG_BIN=0;
ALTER TABLE ...
SET SQL_LOG_BIN=1;

First on one server then on the other, switching masters each time.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re just doing an ALTER, a simple way to do it is run:</p>
<p>SET SQL_LOG_BIN=0;<br />
ALTER TABLE &#8230;<br />
SET SQL_LOG_BIN=1;</p>
<p>First on one server then on the other, switching masters each time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
