<?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"
	>
<channel>
	<title>Comments on: 3 ways to write UPSERT and MERGE queries in MySQL</title>
	<atom:link href="http://www.xaprb.com/blog/2006/06/17/3-ways-to-write-upsert-and-merge-queries-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2006/06/17/3-ways-to-write-upsert-and-merge-queries-in-mysql/</link>
	<description>Stay curious!</description>
	<pubDate>Tue, 06 Jan 2009 10:58:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: J Jorgenson</title>
		<link>http://www.xaprb.com/blog/2006/06/17/3-ways-to-write-upsert-and-merge-queries-in-mysql/#comment-5681</link>
		<dc:creator>J Jorgenson</dc:creator>
		<pubDate>Thu, 12 Apr 2007 18:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=180#comment-5681</guid>
		<description>&lt;p&gt;The "INSERT .. SELECT .. ON DUPLICATE KEY" can work *MUCH* faster than a similar "INSERT ... SELECT .. GROUP BY" when there is not much duplication against the Primary/Unique key on the Inserted table.  

The disk I/O is greatly increased but there are *NO* temporary tables involved greatly reducing RAM/Temp space requirements of the MySQL Server.  

In a data warehousing world, the ON DUPLICATE KEY (UPSERT) is crutial !!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>The &#8220;INSERT .. SELECT .. ON DUPLICATE KEY&#8221; can work *MUCH* faster than a similar &#8220;INSERT &#8230; SELECT .. GROUP BY&#8221; when there is not much duplication against the Primary/Unique key on the Inserted table.  </p>
<p>The disk I/O is greatly increased but there are *NO* temporary tables involved greatly reducing RAM/Temp space requirements of the MySQL Server.  </p>
<p>In a data warehousing world, the ON DUPLICATE KEY (UPSERT) is crutial !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2006/06/17/3-ways-to-write-upsert-and-merge-queries-in-mysql/#comment-1059</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Mon, 10 Jul 2006 00:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=180#comment-1059</guid>
		<description>&lt;p&gt;After deleting them, though.  So it's actually a &lt;code&gt;DELETE/INSERT&lt;/code&gt; construct.  I didn't mean to imply it was an &lt;code&gt;UPDATE&lt;/code&gt;.  I just wanted to list out ways to get similar functionality.&lt;/p&gt;

&lt;p&gt;This is great that you're commenting, by the way.  One of my goals with this blog is to learn as much as possible.  Hopefully it's also useful to others, but it's a great chance for me to get corrections where I need them.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>After deleting them, though.  So it&#8217;s actually a <code>DELETE/INSERT</code> construct.  I didn&#8217;t mean to imply it was an <code>UPDATE</code>.  I just wanted to list out ways to get similar functionality.</p>
<p>This is great that you&#8217;re commenting, by the way.  One of my goals with this blog is to learn as much as possible.  Hopefully it&#8217;s also useful to others, but it&#8217;s a great chance for me to get corrections where I need them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjen Lentz</title>
		<link>http://www.xaprb.com/blog/2006/06/17/3-ways-to-write-upsert-and-merge-queries-in-mysql/#comment-1058</link>
		<dc:creator>Arjen Lentz</dc:creator>
		<pubDate>Sun, 09 Jul 2006 23:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=180#comment-1058</guid>
		<description>&lt;p&gt;&lt;code&gt;REPLACE&lt;/code&gt; does not do an update, it completely replaces the original row(s).&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p><code>REPLACE</code> does not do an update, it completely replaces the original row(s).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
