<?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: avoid unnecessary updates</title>
	<atom:link href="http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Mon, 01 Dec 2008 20:02:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4223</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Mon, 09 Jul 2007 08:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4223</guid>
		<description>Pawel,
I agree with 1 :-) and probably 3. I have not found a case where decode would be slower,  but it may exists.

I am not convinced about maintanability. Decode is a trick after all :?</description>
		<content:encoded><![CDATA[<p>Pawel,<br />
I agree with 1 <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> and probably 3. I have not found a case where decode would be slower,  but it may exists.</p>
<p>I am not convinced about maintanability. Decode is a trick after all <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sokrates</title>
		<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4222</link>
		<dc:creator>Sokrates</dc:creator>
		<pubDate>Mon, 09 Jul 2007 07:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4222</guid>
		<description>I don't assume full table scan situation</description>
		<content:encoded><![CDATA[<p>I don&#8217;t assume full table scan situation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paweł Barut</title>
		<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4220</link>
		<dc:creator>Paweł Barut</dc:creator>
		<pubDate>Sun, 08 Jul 2007 09:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4220</guid>
		<description>In my opinion decode is better because:
1. it's shorter :)
2. it's easier to maintain 'and' &#38; 'or' conditions in complex queries
3. it runs at the same speed (assuming full table scan situation)</description>
		<content:encoded><![CDATA[<p>In my opinion decode is better because:<br />
1. it&#8217;s shorter <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
2. it&#8217;s easier to maintain &#8216;and&#8217; &amp; &#8216;or&#8217; conditions in complex queries<br />
3. it runs at the same speed (assuming full table scan situation)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Smith</title>
		<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4215</link>
		<dc:creator>Adrian Smith</dc:creator>
		<pubDate>Sat, 07 Jul 2007 11:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4215</guid>
		<description>Not only is the query faster (as it updates fewer rows), but it also places write-locks on fewer rows. This is normally a good thing too!</description>
		<content:encoded><![CDATA[<p>Not only is the query faster (as it updates fewer rows), but it also places write-locks on fewer rows. This is normally a good thing too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4214</link>
		<dc:creator>Laurent Schneider</dc:creator>
		<pubDate>Sat, 07 Jul 2007 05:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4214</guid>
		<description>:-) yes decode is possible too, but is it better? Well at least it is faster to type...</description>
		<content:encoded><![CDATA[<p> <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> yes decode is possible too, but is it better? Well at least it is faster to type&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paweł Barut</title>
		<link>http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4213</link>
		<dc:creator>Paweł Barut</dc:creator>
		<pubDate>Fri, 06 Jul 2007 18:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://laurentschneider.com/wordpress/2007/07/avoid-unnecessary-updates.html#comment-4213</guid>
		<description>Laurent,

I would rather use this:

update t set x=:a
where decode(x,:a,'Y','N') = 'N';

Paweł</description>
		<content:encoded><![CDATA[<p>Laurent,</p>
<p>I would rather use this:</p>
<p>update t set x=:a<br />
where decode(x,:a,&#8217;Y',&#8217;N') = &#8216;N&#8217;;</p>
<p>Paweł</p>
]]></content:encoded>
	</item>
</channel>
</rss>
