<?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: How fast is MySQL replication?</title>
	<atom:link href="http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Sat, 13 Mar 2010 17:09:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joe D</title>
		<link>http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-16924</link>
		<dc:creator>Joe D</dc:creator>
		<pubDate>Tue, 01 Sep 2009 23:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-16924</guid>
		<description>Hi again Baron.

I was suspicious I was missing something basic here. Well, that&#039;s quite interesting and thanks for the quick reply!

-joe
PS You&#039;re book should be here in two more days!</description>
		<content:encoded><![CDATA[<p>Hi again Baron.</p>
<p>I was suspicious I was missing something basic here. Well, that&#8217;s quite interesting and thanks for the quick reply!</p>
<p>-joe<br />
PS You&#8217;re book should be here in two more days!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-16923</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Tue, 01 Sep 2009 23:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-16923</guid>
		<description>Hi Joe,

That works on many database servers, but not MySQL, because the current timestamp at the time of execution is stored in the binary log, and functions such as NOW() will thus return the same result on the slave as they do on the master.  See also mk-heartbeat from Maatkit.</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>That works on many database servers, but not MySQL, because the current timestamp at the time of execution is stored in the binary log, and functions such as NOW() will thus return the same result on the slave as they do on the master.  See also mk-heartbeat from Maatkit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe D</title>
		<link>http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-16922</link>
		<dc:creator>Joe D</dc:creator>
		<pubDate>Tue, 01 Sep 2009 23:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-16922</guid>
		<description>Hi Baron,

I&#039;m new to MySQL, so forgive me if I show some blatant lack of understanding here, but I have been replicating databases and using heart beat tables to calculate latency for many years. Typically, I&#039;ll have a job periodically insert or update a row on the source/master with an ID and the source&#039;s current time. When this hits the slave/target, the target current time is stored in another column. The delta is the lag.

Thanks for a very useful website!

Cheers,
-joe</description>
		<content:encoded><![CDATA[<p>Hi Baron,</p>
<p>I&#8217;m new to MySQL, so forgive me if I show some blatant lack of understanding here, but I have been replicating databases and using heart beat tables to calculate latency for many years. Typically, I&#8217;ll have a job periodically insert or update a row on the source/master with an ID and the source&#8217;s current time. When this hits the slave/target, the target current time is stored in another column. The delta is the lag.</p>
<p>Thanks for a very useful website!</p>
<p>Cheers,<br />
-joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-14310</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Wed, 19 Mar 2008 13:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-14310</guid>
		<description>In most cases it would be a bad idea, because you might change something that would alter the results of queries the slave will replay:

update account set balance = balance + 5 where id = 10;

I think you ultimately have to build your application to tolerate slave lag.  The more robust you make that, the better off you&#039;ll be.

If you&#039;re having trouble making this work right, a few hours of consulting help might be a good investment.  Check out &lt;a href=&quot;http://www.xaprb.com/blog/2008/03/06/send-your-employees-to-the-mysql-conference/&quot; rel=&quot;nofollow&quot;&gt;the companies I listed in this post.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>In most cases it would be a bad idea, because you might change something that would alter the results of queries the slave will replay:</p>
<p>update account set balance = balance + 5 where id = 10;</p>
<p>I think you ultimately have to build your application to tolerate slave lag.  The more robust you make that, the better off you&#8217;ll be.</p>
<p>If you&#8217;re having trouble making this work right, a few hours of consulting help might be a good investment.  Check out <a href="http://www.xaprb.com/blog/2008/03/06/send-your-employees-to-the-mysql-conference/" rel="nofollow">the companies I listed in this post.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-14308</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 18 Mar 2008 21:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/2007/10/23/how-fast-is-mysql-replication/#comment-14308</guid>
		<description>Thanks for the info and great responses. It sounds like you know a lot about MySQL replication.

Regarding the slave not having caught up to it&#039;s master - and wanting to select from the slave...

Do you think it an okay idea to make a database link to the master - update the master close the connection, make a connection to the slave and also update the slave (from which you are just about to select from) (with the same data  that just got inserted into the master) and then select from the slave. 

Sounds messy and you have to make sure you are updating and selecting from the same slave in order to make use of it. Or would that be a bad idea?

Thanks again :)</description>
		<content:encoded><![CDATA[<p>Thanks for the info and great responses. It sounds like you know a lot about MySQL replication.</p>
<p>Regarding the slave not having caught up to it&#8217;s master &#8211; and wanting to select from the slave&#8230;</p>
<p>Do you think it an okay idea to make a database link to the master &#8211; update the master close the connection, make a connection to the slave and also update the slave (from which you are just about to select from) (with the same data  that just got inserted into the master) and then select from the slave. </p>
<p>Sounds messy and you have to make sure you are updating and selecting from the same slave in order to make use of it. Or would that be a bad idea?</p>
<p>Thanks again :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
