Dave, would this be a better approach? Also, can you use any name you want
as long as you are consistent? See below. Thanks, Che

<cflock name="#session.cart#" type="exclusive" timeout="20">
        <cfset structDelete(session.cart, url.sku)>
</cflock>

-----Original Message-----
From: Dave Watts [mailto:[email protected]] 
Sent: Wednesday, September 09, 2009 2:46 PM
To: cf-talk
Subject: Re: Quick question on cflock...

Third, you DON'T WANT TO LOCK AN ENTIRE SCOPE! This is why God* gave us
named locks. In CF 5 and earlier, you had to lock the scope to prevent
serious problems unrelated to the actual race condition. But in 6+, you can
create lock names and lock only the things that need to be locked. Locking
the entire session or application scopes is asking for performance trouble
under load. It simply won't scale.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326157
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to