<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>beer planet &#187; database</title>
	<atom:link href="http://beerpla.net/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://beerpla.net</link>
	<description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description>
	<lastBuildDate>Tue, 27 Jul 2010 04:25:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/>
		<item>
		<title>How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</title>
		<link>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</link>
		<comments>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 10:42:10 +0000</pubDate>
		<dc:creator>Artem Russakovskii</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[incorrect]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wp_comments]]></category>
		<category><![CDATA[wp_posts]]></category>
		<guid isPermaLink="false">http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/</guid>
		<description><![CDATA[<p><img style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /><br />
<h2>Introduction</h2>
</p><p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p>
<p>But first, a little background.</p>
<h2>Comment Counts In WordPress</h2>
<p>Here&#039;s how comment counts work in WP:</p>
<ul>
<li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li>
<li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li>
<li>However, to make queries faster, the comment count is also cached</li></ul><p>...<div class=clear></div> <a href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" class="read_more"><div class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/517e9e45d3fa_2C92/image.png" width="222" height="189" /><br />
<h2>Introduction</h2>
<p>If your WordPress comment counts got messed up, whether because of a plugin (I&#039;m talking about you, DISQUS) or you messed with your database manually and did something wrong (yup, that&#039;s what I just did), fear not &#8211; I have a solution for you.</p>
<p>But first, a little background.</p>
<h2>Comment Counts In WordPress</h2>
<p>Here&#039;s how comment counts work in WP:</p>
<ul>
<li>Posts live in a table called <strong><em>wp_posts</em></strong> and each has an ID.</li>
<li>Comments reside in a table called <strong><em>wp_comments</em></strong>, each referring to an ID in wp_posts.</li>
<li>However, to make queries faster, the comment count is also cached in the wp_posts table, rather than getting calculated on every page load.     <br />If this count ever gets out of sync with the actual number of comments for some reason, WordPress, while still displaying all comments properly, will simply show the wrong count. </li>
</ul>
<h2>How To Find Out Which Posts Are Out Of Sync</h2>
<p>Fire up a MySQL shell or your favorite MySQL software (mine is <a href="http://www.navicat.com" rel="nofollow">Navicat</a>) and run this query.</p>
<p>It assumes your database is called <strong><em>wordpress</em></strong> and the prefix is <strong><em>wp_</em></strong>, so adjust those accordingly.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre>SELECT wpp.id, wpp.post_title, wpp.comment_count, wpc.cnt
FROM wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div>
</p>
<p>The result of this query is a list of posts whose comment_counts differ from the actual number of comments associated with each of them.</p>
<p>The left count is the cached number, while the right one is the right one.</p>
<h2>How To Fix The Counts Automatically</h2>
<p><div class="note"><div class="notewarning">Please make a backup of your database before performing any altering queries such as the one below (I recommend mysqldump or the <a href="http://lesterchan.net/wordpress/readme/wp-dbmanager.html" rel="nofollow">WP-DBManager plugin</a>).</div></div></p>
<p>The following query will recalculate and fix the comment counts for all posts that are out of sync (ones we just queried for above):</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre>UPDATE wordpress.wp_posts wpp
LEFT JOIN
(SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wordpress.wp_comments
 WHERE comment_approved = 1 GROUP BY comment_post_id) wpc
ON wpp.id=wpc.c_post_id
SET wpp.comment_count=wpc.cnt
WHERE wpp.post_type IN ('post', 'page')
      AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL));</pre></td></tr></table></div>
<p>I tested this approach on a few test cases but if you experience any problems, please do alert me in the comments and desribe your problem.</p>
<p>Happy WP hacking!</p>
<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress+-+http://bit.ly/cYF2ks&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;t=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;t=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/&amp;title=How+To+Diagnose+And+Fix+Incorrect+Post+Comment+Counts+In+Wordpress" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22How%20To%20Diagnose%20And%20Fix%20Incorrect%20Post%20Comment%20Counts%20In%20Wordpress%22&amp;body=Link: http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %20%20%20Introduction%20%20If%20your%20Wordpress%20comment%20counts%20got%20messed%20up%2C%20whether%20because%20of%20a%20plugin%20%28I%27m%20talking%20about%20you%2C%20DISQUS%29%20or%20you%20messed%20with%20your%20database%20manually%20and%20did%20something%20wrong%20%28yup%2C%20that%27s%20what%20I%20just%20did%29%2C%20fear%20not%20-%20I%20have%20a%20solution%20for%20you.%20%20But%20first%2C%20a%20little%20background.%20%20Commen" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
Similar Posts:<ul><li><a href="http://beerpla.net/2010/01/05/how-to-fix-intermittent-mysql-errcode-13-errors-on-windows/" rel="bookmark" title="January 5, 2010">How To Fix Intermittent MySQL Errcode 13 Errors On Windows</a></li>
<li><a href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li>
<li><a href="http://beerpla.net/2009/05/11/mysql-deletingupdating-rows-common-to-2-tables-speed-and-slave-lag-considerations/" rel="bookmark" title="May 11, 2009">[MySQL] Deleting/Updating Rows Common To 2 Tables &#8211; Speed And Slave Lag Considerations</a></li>
<li><a href="http://beerpla.net/2008/09/05/mysql-slave-lag-delay-explained-and-7-ways-to-battle-it/" rel="bookmark" title="September 5, 2008">MySQL Slave Lag (Delay) Explained And 7 Ways To Battle It</a></li>
<li><a href="http://beerpla.net/2008/03/25/navicat-for-mysql-bugs-filed/" rel="bookmark" title="March 25, 2008">Navicat For MySQL Bugs Filed</a></li>
</ul><!-- Similar Posts took 13.464 ms --><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Swapping Column Values in MySQL</title>
		<link>http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/</link>
		<comments>http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 00:53:47 +0000</pubDate>
		<dc:creator>Artem Russakovskii</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[value]]></category>
		<guid isPermaLink="false">http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/</guid>
		<description><![CDATA[<p>Today I had to swap 2 columns in one of my MySQL tables. The task, which seems easily accomplishable by a temp variable, proved to be a bit harder to complete. But only just a bit.</p>
<p>Here are my findings:</p>
<ol>
<li>
<p>The</p>
<div class="wp_syntax"><div class="code"><pre>UPDATE swap_test SET x=y, y=x;</pre></div></div>
<p>approach doesn&#039;t work, as it&#039;ll just set both values to y.</p>
<p><div class="note"><div class="notetip">PostgreSQL seems to handle this query differently, as it apparently uses the old values throughout the whole query. [<a href="http://www.postgresql.org/docs/8.3/static/sql-update.html">Reference</a>]</div></div></p>
</li>
<li>
<p>Here&#039;s a method that uses a temporary variable. Thanks to Antony from the comments for the &#34;IS NOT</p></li></ol><p>...<div class=clear></div> <a href="http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/" class="read_more"><div class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description>
			<content:encoded><![CDATA[<p>Today I had to swap 2 columns in one of my MySQL tables. The task, which seems easily accomplishable by a temp variable, proved to be a bit harder to complete. But only just a bit.</p>
<p>Here are my findings:</p>
<ol>
<li>
<p>The</p>
<div class="wp_syntax"><div class="code"><pre>UPDATE swap_test SET x=y, y=x;</pre></div></div>
<p>approach doesn&#039;t work, as it&#039;ll just set both values to y.</p>
<p><div class="note"><div class="notetip">PostgreSQL seems to handle this query differently, as it apparently uses the old values throughout the whole query. [<a href="http://www.postgresql.org/docs/8.3/static/sql-update.html">Reference</a>]</div></div></p>
</li>
<li>
<p>Here&#039;s a method that uses a temporary variable. Thanks to Antony from the comments for the &quot;IS NOT NULL&quot; tweak. Without it, the query works unpredictably. See the table schema at the end of the post. This method doesn&#039;t swap the values if one of them is NULL. Use method #3 that doesn&#039;t have this limitation.</p>
<div class="wp_syntax"><div class="code"><pre>UPDATE swap_test SET x=y, y=@temp WHERE (@temp:=x) IS NOT NULL;</pre></div></div>
<p><div class="note"><div class="notewarning">The parentheses around @temp:=x are critical. Omitting them will cause data corruption.</div></div></p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre>mysql&gt; UPDATE swap_test SET x=y, y=@temp WHERE (@temp:=x) IS NOT NULL;
Query OK, 3 rows affected
Rows matched: 3  Changed: 3  Warnings: 0</pre></td></tr></table></div>
</li>
<li>
<p>This method was offered by Dipin in the comments. I think it’s the most elegant and clean solution. It works with both NULL and non-NULL values.</p>
<div class="wp_syntax"><div class="code"><pre>UPDATE swap_test SET x=(@temp:=x), x = y, y = @temp;</pre></div></div>
</li>
<li>
<p>Another approach I came up with that seems to work:</p>
<div class="wp_syntax"><div class="code"><pre>UPDATE swaptest s1, swaptest s2 SET s1.x=s1.y, s1.y=s2.x WHERE s1.id=s2.id;</pre></div></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre>mysql&gt; update swap_test s1, swap_test s2 set s1.x=s1.y, s1.y=s2.x where s1.id=s2.id;
Query OK, 3 rows affected
Rows matched: 3  Changed: 3  Warnings: 0</pre></td></tr></table></div>
</li>
</ol>
<p>Essentially, the 1st table is the one getting updated and the 2nd one is used to pull the old data from. <div class="note"><div class="noteclassic">Note that this approach requires a primary key to be present.</div></div></p>
<p>Test schema used:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre>CREATE TABLE `swap_test` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `x` varchar(255) DEFAULT NULL,
  `y` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB;
&nbsp;
INSERT INTO `swap_test` VALUES ('1', 'a', '10');
INSERT INTO `swap_test` VALUES ('2', NULL, '20');
INSERT INTO `swap_test` VALUES ('3', 'c', NULL);</pre></td></tr></table></div>
<p>Do you have a better approach? If so, please share in the comments.</p>
<p>Some references:</p>
<ul>
<li><a title="http://stackoverflow.com/questions/37649/swapping-column-values-in-mysql/" href="http://stackoverflow.com/questions/37649/swapping-column-values-in-mysql/">http://stackoverflow.com/questions/37649/swapping-column-values-in-mysql/</a> – some discussion on various methods, which eventually prompted me to start this post </li>
<li><a title="http://www.marcworrell.com/article-3026-en.html" href="http://www.marcworrell.com/article-3026-en.html">http://www.marcworrell.com/article-3026-en.html</a> – discussion on the 2nd approach, which doesn’t work </li>
</ul>
<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Swapping+Column+Values+in+MySQL+-+http://bit.ly/9F5oZC&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;t=Swapping+Column+Values+in+MySQL" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;t=Swapping+Column+Values+in+MySQL" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;title=Swapping+Column+Values+in+MySQL" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;title=Swapping+Column+Values+in+MySQL" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;title=Swapping+Column+Values+in+MySQL" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/&amp;title=Swapping+Column+Values+in+MySQL" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Swapping%20Column%20Values%20in%20MySQL%22&amp;body=Link: http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Today%20I%20had%20to%20swap%202%20columns%20in%20one%20of%20my%20MySQL%20tables.%20The%20task%2C%20which%20seems%20easily%20accomplishable%20by%20a%20temp%20variable%2C%20proved%20to%20be%20a%20bit%20harder%20to%20complete.%20But%20only%20just%20a%20bit.%20%20Here%20are%20my%20findings%3A%20%20%20%20%20%20%20%20%20%20The%20%20%20%20%20%20UPDATE%20swap_test%20SET%20x%3Dy%2C%20y%3Dx%3B%0A%0A%20%20%20%20approach%20doesn%27t%20work%2C%20as%20it%27ll%20just%20set%20b" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
Similar Posts:<ul><li><a href="http://beerpla.net/2009/03/18/mysql-indexing-considerations-of-implementing-a-priority-field-in-your-application/" rel="bookmark" title="March 18, 2009">MySQL Indexing Considerations Of Implementing A Priority Field In Your Application</a></li>
<li><a href="http://beerpla.net/2008/04/17/mysql-conference-liveblogging-optimizing-mysql-for-high-volume-data-logging-applications-thursday-250pm/" rel="bookmark" title="April 17, 2008">MySQL Conference Liveblogging: Optimizing MySQL For High Volume Data Logging Applications (Thursday 2:50PM)</a></li>
<li><a href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-explain-demystified-tuesday-200p/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: EXPLAIN Demystified (Tuesday 2:00PM)</a></li>
<li><a href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li>
<li><a href="http://beerpla.net/2009/05/11/mysql-deletingupdating-rows-common-to-2-tables-speed-and-slave-lag-considerations/" rel="bookmark" title="May 11, 2009">[MySQL] Deleting/Updating Rows Common To 2 Tables &#8211; Speed And Slave Lag Considerations</a></li>
</ul><!-- Similar Posts took 7.480 ms --><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>
