<?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: Optimizing UPDATE Statements</title>
	<atom:link href="http://blogs.teamb.com/craigstuntz/2007/09/18/37753/feed" rel="self" type="application/rss+xml" />
	<link>http://blogs.teamb.com/craigstuntz/2007/09/18/37753/</link>
	<description>News of interest to Delphi, .NET, and InterBase programmers</description>
	<pubDate>Sat, 22 Nov 2008 15:58:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Craig Stuntz</title>
		<link>http://blogs.teamb.com/craigstuntz/2007/09/18/37753/#comment-614</link>
		<dc:creator>Craig Stuntz</dc:creator>
		<pubDate>Thu, 20 Sep 2007 13:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2007/09/18/37753#comment-614</guid>
		<description>Maxim and Romkin,

Yes, I understand why the DSP/resolver generated the WHERE clause. Like I said in the post, it's beyond the scope of the post to discuss it here, but IMHO what it's doing is a *good* thing, and I don't want to stop it from doing that. 

The important point here is that the WHERE clause was legitimate, and the VIEW needed to be changed so that it could be executed quickly.</description>
		<content:encoded><![CDATA[<p>Maxim and Romkin,</p>
<p>Yes, I understand why the DSP/resolver generated the WHERE clause. Like I said in the post, it&#8217;s beyond the scope of the post to discuss it here, but IMHO what it&#8217;s doing is a *good* thing, and I don&#8217;t want to stop it from doing that. </p>
<p>The important point here is that the WHERE clause was legitimate, and the VIEW needed to be changed so that it could be executed quickly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romkin</title>
		<link>http://blogs.teamb.com/craigstuntz/2007/09/18/37753/#comment-611</link>
		<dc:creator>Romkin</dc:creator>
		<pubDate>Thu, 20 Sep 2007 08:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2007/09/18/37753#comment-611</guid>
		<description>NB:
The where clause in update (and delete) statement, generated by SQL resolver may be controlled by TDatasetProvider.UpdateMode value. upWhereKeyOnly - all you needs for only primary key fields in 'where'. Exactly, TxxxQuery fields with pfInKey in ProviderFlags option only.</description>
		<content:encoded><![CDATA[<p>NB:<br />
The where clause in update (and delete) statement, generated by SQL resolver may be controlled by TDatasetProvider.UpdateMode value. upWhereKeyOnly - all you needs for only primary key fields in &#8216;where&#8217;. Exactly, TxxxQuery fields with pfInKey in ProviderFlags option only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxim</title>
		<link>http://blogs.teamb.com/craigstuntz/2007/09/18/37753/#comment-608</link>
		<dc:creator>Maxim</dc:creator>
		<pubDate>Thu, 20 Sep 2007 06:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/2007/09/18/37753#comment-608</guid>
		<description>Or you can just set the DataSetProvider.UpdateMode to upWhereKeyOnly and include pfInKey into the PK field of the corresponding dataset. Then the provider will generate WHERE statement with PK field only. But upWhereAll or upWhereChanged are used to guard against update of a record that is already changed by a different user. So changing the view behaviour can lead to some sort of inconsistency between application developer expectations and actual database behaviour.</description>
		<content:encoded><![CDATA[<p>Or you can just set the DataSetProvider.UpdateMode to upWhereKeyOnly and include pfInKey into the PK field of the corresponding dataset. Then the provider will generate WHERE statement with PK field only. But upWhereAll or upWhereChanged are used to guard against update of a record that is already changed by a different user. So changing the view behaviour can lead to some sort of inconsistency between application developer expectations and actual database behaviour.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
