<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Update Error</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2012/12/07/update-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2012/12/07/update-error/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Tue, 18 Jun 2013 17:11:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Sayan Malakshinov</title>
		<link>http://jonathanlewis.wordpress.com/2012/12/07/update-error/#comment-51896</link>
		<dc:creator><![CDATA[Sayan Malakshinov]]></dc:creator>
		<pubDate>Fri, 07 Dec 2012 18:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=9956#comment-51896</guid>
		<description><![CDATA[Ooops, sorry my mistake. There are more than 20 subquery executions(I was confused by 40 starts AFTER filter), so scalar subquery caching couldn&#039;t affect.]]></description>
		<content:encoded><![CDATA[<p>Ooops, sorry my mistake. There are more than 20 subquery executions(I was confused by 40 starts AFTER filter), so scalar subquery caching couldn&#8217;t affect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sayan Malakshinov</title>
		<link>http://jonathanlewis.wordpress.com/2012/12/07/update-error/#comment-51894</link>
		<dc:creator><![CDATA[Sayan Malakshinov]]></dc:creator>
		<pubDate>Fri, 07 Dec 2012 17:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/?p=9956#comment-51894</guid>
		<description><![CDATA[Sorry, i don&#039;t understand: if there are 20 rows (it is less than 200), so why there was no effect of scalar subquery caching after restart? AFAIK it&#039;s most often &quot;write consistency&quot; problem with scalar subqueries after minirollbacks with restarts.

PS. Recently was interesting question on our russian forum ( http://www.sql.ru/forum/actualthread.aspx?tid=988126&amp;mid=13574719 ): 
How to optimize this query:
[sourcecode language=&quot;sql&quot;]
UPDATE scott.emp
   SET sal = (SELECT AVG (sal) FROM  scott.emp)
 WHERE sal&lt; (SELECT AVG (sal) FROM  scott.emp)
[/sourcecode]]]></description>
		<content:encoded><![CDATA[<p>Sorry, i don&#8217;t understand: if there are 20 rows (it is less than 200), so why there was no effect of scalar subquery caching after restart? AFAIK it&#8217;s most often &#8220;write consistency&#8221; problem with scalar subqueries after minirollbacks with restarts.</p>
<p>PS. Recently was interesting question on our russian forum ( <a href="http://www.sql.ru/forum/actualthread.aspx?tid=988126&#038;mid=13574719" rel="nofollow">http://www.sql.ru/forum/actualthread.aspx?tid=988126&#038;mid=13574719</a> ):<br />
How to optimize this query:</p>
<pre class="brush: sql; title: ; notranslate">
UPDATE scott.emp
   SET sal = (SELECT AVG (sal) FROM  scott.emp)
 WHERE sal&lt; (SELECT AVG (sal) FROM  scott.emp)
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
