I agree.  It makes more sense to not auto-lock because you have more
control over how/where you do your locking.  Over time and traffic,
locking can cause its own major headaches.  Plus, if you turn on the CF
Admin option that does auto-locking, you'll see a noticeable performance
hit on your server if you're getting high volumes of traffic.  The
locking and unlocking requires a bit of CF performance.

It's a pain in the butt sometimes, but overall it's usually not too bad
to do your own locking.

-Tyson

-----Original Message-----
From: Matthew W Jones [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 9:24 AM
To: CF-Talk
Subject: RE: I don't understand session locking :(


had they done that,
it likely would have placed a lock around each individual use.
which would have been hard on performance.

as they left it,
you control what to lock, which allows you to place a single lock around
a
block of code.


-----Original Message-----
From: Dennis Powers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 9:07 AM
To: CF-Talk
Subject: RE: I don't understand session locking :(


Maybe I am being a curmudgeon today, but it seems to me that if you
ALWAYS
need to lock session and application variables and would never want to
use
them without locks then Allaire should have coded that function into
it's
core design.


Dennis Powers
UXB Internet
(203)879-2844
http://www.uxbinfo.com/

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 7:14 PM
To: CF-Talk
Subject: RE: I don't understand session locking :(

Yes, you need to place a lock around any reads or writes of Session
variables. If you don't lock reads as well as writes, and there's any
possibility of the two operations happening simultaneously (and there
usually is), then the lock you put on the write is useless by itself.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to