<?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: When backups fail: A mysql binlog race condition</title>
	<atom:link href="http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=when-backups-fail-a-mysql-binlog-race-condition</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 19:40:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: minisite designer</title>
		<link>http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/comment-page-1/#comment-21501</link>
		<dc:creator>minisite designer</dc:creator>
		<pubDate>Sun, 16 May 2010 00:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/#comment-21501</guid>
		<description>Very useful informations about these subject. I have found them with googling and you seems number one of these subjects ! . . .</description>
		<content:encoded><![CDATA[<p>Very useful informations about these subject. I have found them with googling and you seems number one of these subjects ! . . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luisa</title>
		<link>http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/comment-page-1/#comment-20159</link>
		<dc:creator>Luisa</dc:creator>
		<pubDate>Tue, 23 Mar 2010 15:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/#comment-20159</guid>
		<description>Joah hier sind wir nun... habe bei Google nach Kleinanzeigen gesucht und bin bei dir gelandet. Will einen Fernseher verkaufen (antik) und habe es bereits auf http://dimida.de probiert... aber da ist anscheinend nichts los. Jetzt gibt es noch ebay aber da kann man niemanden vertrauen. Daher meine Frage: Wo verkaufe ich am besten meine alten Sachen?</description>
		<content:encoded><![CDATA[<p>Joah hier sind wir nun&#8230; habe bei Google nach Kleinanzeigen gesucht und bin bei dir gelandet. Will einen Fernseher verkaufen (antik) und habe es bereits auf <a href="http://dimida.de" rel="nofollow">http://dimida.de</a> probiert&#8230; aber da ist anscheinend nichts los. Jetzt gibt es noch ebay aber da kann man niemanden vertrauen. Daher meine Frage: Wo verkaufe ich am besten meine alten Sachen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GUS CLEMENS: Know what to get when planning for wedding &#124; Wedding Planning Guide</title>
		<link>http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/comment-page-1/#comment-19521</link>
		<dc:creator>GUS CLEMENS: Know what to get when planning for wedding &#124; Wedding Planning Guide</dc:creator>
		<pubDate>Thu, 04 Mar 2010 21:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/#comment-19521</guid>
		<description>[...] When backups fail: A mysql binlog race condition « Screenage [...]</description>
		<content:encoded><![CDATA[<p>[...] When backups fail: A mysql binlog race condition « Screenage [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shermann</title>
		<link>http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/comment-page-1/#comment-19442</link>
		<dc:creator>shermann</dc:creator>
		<pubDate>Wed, 03 Mar 2010 06:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/#comment-19442</guid>
		<description>Don&#039;t DELETE ;)

Serious, use a flag in your SQL table model, isDeleted or something, a bit field or boolean. When you do your normal &quot;housecleaning&quot; (during the nights, while some importan cronjobs are running), you fire a &quot;delete from foobar where isDeleted=true&quot;...you can then avoid having &quot;inserts and deletes&quot; in your binlog
in the wrong order.

@*8D:
Row based replication can help you here, that&#039;s right, but it can also be a performance killer.
Let&#039;s assume: You have a database with a table of 50mil or more entries...delete from  where isDeleted=true, results in a statement based replication in exactly one statement..while in a row based replication it would hit hundreds of thousands of data in your binlog.

The good thing of MySQL 5.1 is, that you can decide what you want to do...mixed mode can help..if you know that deletes should be avoided (This we&#039;re telling as well to our developers, who don&#039;t believe us anyways ;))

Regards,

\sh</description>
		<content:encoded><![CDATA[<p>Don&#8217;t DELETE <img src='http://www.screenage.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Serious, use a flag in your SQL table model, isDeleted or something, a bit field or boolean. When you do your normal &#8220;housecleaning&#8221; (during the nights, while some importan cronjobs are running), you fire a &#8220;delete from foobar where isDeleted=true&#8221;&#8230;you can then avoid having &#8220;inserts and deletes&#8221; in your binlog<br />
in the wrong order.</p>
<p>@*8D:<br />
Row based replication can help you here, that&#8217;s right, but it can also be a performance killer.<br />
Let&#8217;s assume: You have a database with a table of 50mil or more entries&#8230;delete from  where isDeleted=true, results in a statement based replication in exactly one statement..while in a row based replication it would hit hundreds of thousands of data in your binlog.</p>
<p>The good thing of MySQL 5.1 is, that you can decide what you want to do&#8230;mixed mode can help..if you know that deletes should be avoided (This we&#8217;re telling as well to our developers, who don&#8217;t believe us anyways <img src='http://www.screenage.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Regards,</p>
<p>\sh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: *8D</title>
		<link>http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/comment-page-1/#comment-19421</link>
		<dc:creator>*8D</dc:creator>
		<pubDate>Tue, 02 Mar 2010 22:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2010/03/02/when-backups-fail-a-mysql-binlog-race-condition/#comment-19421</guid>
		<description>use of row based replication helps avoid this issue.  statement based or mixed mode can be prone to this sort of thing, particularly during times of heavy load.</description>
		<content:encoded><![CDATA[<p>use of row based replication helps avoid this issue.  statement based or mixed mode can be prone to this sort of thing, particularly during times of heavy load.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

