 




<?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/"
		>
<channel>
	<title>Comments on: record locking in As/400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/record-locking-in-as400/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/record-locking-in-as400/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 12:21:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: yorkshireman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/record-locking-in-as400/#comment-97489</link>
		<dc:creator>yorkshireman</dc:creator>
		<pubDate>Thu, 06 Oct 2011 07:14:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-97489</guid>
		<description><![CDATA[Don&#039;t lock the record.  

Don&#039;t ever write anything that locks a record - ever.


Except just before you update it.  


read and display
read and display
decide an update is needed

read the record for update (lock)
check it hasn&#039;t changed since you displayed it ( tell the user if so)
updtae it
release the lock

read and display 
read and display
bl hblah]]></description>
		<content:encoded><![CDATA[<p>Don&#8217;t lock the record.  </p>
<p>Don&#8217;t ever write anything that locks a record &#8211; ever.</p>
<p>Except just before you update it.  </p>
<p>read and display<br />
read and display<br />
decide an update is needed</p>
<p>read the record for update (lock)<br />
check it hasn&#8217;t changed since you displayed it ( tell the user if so)<br />
updtae it<br />
release the lock</p>
<p>read and display<br />
read and display<br />
bl hblah</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.048 seconds using memcached
Object Caching 265/271 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 12:36:49 -->