<html>
<font size=3>Oh. That may be true, but it is important to point out that
that is wrong and won't work.<br>
<br>
At 01:16 PM 9/14/00 -0400, Mike Amburn wrote:<br>
<blockquote type=cite cite>i'd disagree... if you look back over all the
emails in all of the<br>
threads, you should see that more people only lock writes versus
locking<br>
both. that consensus by the majority is what i was commenting too.<br>
<br>
-mike<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Peter Theobald
[<a href="mailto:[EMAIL PROTECTED]" 
eudora="autourl">mailto:[EMAIL PROTECTED]</a>]<br>
&gt; Sent: Wednesday, September 13, 2000 8:30 PM<br>
&gt; To: [EMAIL PROTECTED]<br>
&gt; Subject: RE: cflocking.. -- ATTENTION -- MY CASE STUDY<br>
&gt; <br>
&gt; <br>
&gt; The consensus was *NEVER* that you didn't have to lock reads.<br>
&gt; Cold Fusion doesn't FORCE locking - it is up to you to lock <br>
&gt; access to an Application variable.<br>
&gt; If you lock the writes but don't lock the reads, then when <br>
&gt; Cold Fusion comes upon a read without a lock it will blindly <br>
&gt; run the read even if there is a (locked) write executing at <br>
&gt; the same time. In other words, locking writes without locking <br>
&gt; reads is completely useless.<br>
&gt; <br>
&gt; All an Exclusive lock does is mark the variable so that <br>
&gt; ANOTHER ATTEMPT TO LOCK IT will have to wait until the lock is
freed. <br>
&gt; It is totally up to YOUR LOCKS to ensure the variable is not <br>
&gt; used by two threads at the same time.<br>
&gt; <br>
&gt; <br>
&gt; At 06:05 PM 9/13/00 -0400, Mike Amburn wrote:<br>
&gt; &gt;i've been following the CFLOCK threads for months and months
<br>
&gt; now. i even<br>
&gt; &gt;started several. unfortunately, the problem is that there <br>
&gt; doesn't seem<br>
&gt; &gt;to be any consensus on what's the end-all, be-all, <br>
&gt; definitive answer to<br>
&gt; &gt;the question &quot;do you have to lock reads or just
writes?&quot; now i can't<br>
&gt; &gt;speak for anyone else, however, i can tell you what we found
<br>
&gt; during load<br>
&gt; &gt;testing and you can do judge for yourself.<br>
&gt; &gt;<br>
&gt; &gt;recently, we hired Allaire to come in and load test (using<br>
&gt; &gt;SilkPerformer) one of our main applications, which is
incredibly<br>
&gt; &gt;database intensive and uses a lot of CFMODULES and <br>
&gt; application variables<br>
&gt; &gt;(no client or session variables). before the test, the <br>
&gt; application ran<br>
&gt; &gt;perfect under normal load. however, as soon as we added
simultaneous<br>
&gt; &gt;load (users requesting the same resources at the same exact
time), we<br>
&gt; &gt;immediately crashed with deadlocks in the database and
application<br>
&gt; &gt;errors. again, runs perfect with all of our customers in <br>
&gt; production, but<br>
&gt; &gt;fails immediately under load.<br>
&gt; &gt;<br>
&gt; &gt;up until this point, our strategy had followed the majority
<br>
&gt; consensus:<br>
&gt; &gt;lock your writes, but not your reads. however, after 14 hours
of<br>
&gt; &gt;analyzing the problems of the load testing between Allaire and
I, we<br>
&gt; &gt;finally just enabled the auto-locking capabilities in CF <br>
&gt; Admin to see if<br>
&gt; &gt;that did anything. (keep in mind, the Allaire rep had warned
before<br>
&gt; &gt;about locking reads) the result after enabling auto-lock? <br>
&gt; not a single<br>
&gt; &gt;problem for the remainder of the engagement! that's right...
<br>
&gt; no errors,<br>
&gt; &gt;no deadlocks, nothing. it functioned under load BEAUTIFULLY with
the<br>
&gt; &gt;auto-lock enabled until we finally got the numbers we wanted
and<br>
&gt; &gt;finished the analysis.<br>
&gt; &gt;<br>
&gt; &gt;so again, i don't want to argue with anyone about their own
strategy.<br>
&gt; &gt;however, seeing it happen right in front of my eyes has me
absolutely<br>
&gt; &gt;convinced WITHOUT A SHADOW OF A DOUBT that allaire is <br>
&gt; COMPLETELY correct<br>
&gt; &gt;when they suggest everyone lock BOTH application writes AND
<br>
&gt; reads. and<br>
&gt; &gt;to tell you the truth, the performance hit for using the <br>
&gt; auto-lock seems<br>
&gt; &gt;to be very minimal (at least on our application) so don't <br>
&gt; worry too much<br>
&gt; &gt;about that if you don't want to go back and insert all the
read-only<br>
&gt; &gt;locks.<br>
&gt; &gt;<br>
&gt; &gt;so that's my two cents. hope it helps. =)<br>
&gt; &gt;<br>
&gt; &gt;-mike<br>
&gt;
&gt;-------------------------------------------------------------<br>
&gt; -----------------<br>
&gt; &gt;Archives:
<a href="http://www.mail-archive.com/[email protected]/" 
eudora="autourl">http://www.mail-archive.com/[email protected]/</a><br>
&gt; &gt;To Unsubscribe visit <br>
&gt;
<a href="http://www.houseoffusion.com/index.cfm?sidebarsts&amp;bodysts/cf_t" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebarsts&amp;bodysts/cf_t</a><br>
alk or send a message to [EMAIL PROTECTED] with<br>
'unsubscribe' in the body. <br>
<br>
<br>
------------------------------------------------------------------------<br>
---<br>
Peter Theobald, Chief Technology Officer<br>
LiquidStreaming
<a href="http://www.liquidstreaming.com/" 
eudora="autourl">http://www.liquidstreaming.com</a><br>
[EMAIL PROTECTED]<br>
Phone 1.212.545.1232 Fax 1.212.679.8032<br>
<br>
------------------------------------------------------------------------<br>
------<br>
Archives:
<a href="http://www.mail-archive.com/[email protected]/" 
eudora="autourl">http://www.mail-archive.com/[email protected]/</a><br>
To Unsubscribe visit<br>
<a href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_talk</a><br>
or send a message to [EMAIL PROTECTED] with<br>
'unsubscribe' in the body.<br>
------------------------------------------------------------------------------<br>
Archives:
<a href="http://www.mail-archive.com/[email protected]/" 
eudora="autourl">http://www.mail-archive.com/[email protected]/</a><br>
To Unsubscribe visit
<a href="http://www.houseoffusion.com/index.cfm?sidebarsts&amp;bodysts/cf_talk" 
eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebarsts&amp;bodysts/cf_talk</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. 
</font></blockquote><br>

<br>
-<font 
size=3>--------------------------------------------------------------------------<br>
Peter Theobald, Chief Technology Officer<br>
LiquidStreaming <a href="http://www.liquidstreaming.com/" 
eudora="autourl">http://www.liquidstreaming.com</a><br>
[EMAIL PROTECTED]<br>
Phone 1.212.545.1232 Fax 1.212.679.8032<br>
</font></html>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to