On Sunday, Jan 12, 2003, at 14:20 US/Pacific, Jochem van Dieten wrote:
> Sean A Corfield wrote:
>> If you lock within Application.cfm, you will single-thread your
>> application and it will not scale. For low-traffic applications, that
>> may be fine.
> I think that is a bit of an oversimplification. Maybe it is a good idea
> to distinguish between readonly and exclusive locks and between
> different scopes.

True. My bad. I was in a hurry. cflock type="exclusive" on every 
request will single-thread your application. cflock type="readonly" 
will not. However, to avoid race conditions, you may still need to use 
exclusive locks - you just have to be careful about it (Marcello's 
great tip on this is in my blog entry).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to