RE: Using cflock and when under different circumstances

2004-06-11 Thread Hoe
easier to understand. Cheers, barneyb -Original Message- From: Hoe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 12:17 PM To: CF-Talk Subject: RE: Using cflock and when under different circumstances Sorry but your answer kinda went over my head. On Thu, 10 Jun 2004 10:40

RE: Using cflock and when under different circumstances

2004-06-11 Thread Raymond Camden
As Barney said, it matters how you are using the variable. Don't worry about cfset, cfloop, or ANY cf tag. Ask yourself - when I use this variable, do I care if another request modifies it? So, consider cfloop. Let's say you want to loop over session.name and display the results. Maybe it is

RE: Using cflock and when under different circumstances

2004-06-11 Thread Hoe
Yes. I'm using CF5. On Fri, 11 Jun 2004 08:13:13 -0500, Raymond Camden wrote: As Barney said, it matters how you are using the variable. Don't worry about cfset, cfloop, or ANY cf tag. Ask yourself - when I use this variable, do I care if another request modifies it? So, consider cfloop. Let's

re: Using cflock and when under different circumstances

2004-06-10 Thread Hoe
Hello, I'm having difficulty grasping when and when not to use cflock? I've been using the following for session variables. cflock timeout=10 type=EXCLUSIVE scope=SESSION cfset SESSION.aaa = aaa cfset SESSION.bbb = bbb /cflock Let's say I'm checking a session varaible using cfif cfif

RE: Using cflock and when under different circumstances

2004-06-10 Thread Barney Boisvert
Message- From: Hoe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 9:56 AM To: CF-Talk Subject: re: Using cflock and when under different circumstances Hello, I'm having difficulty grasping when and when not to use cflock? I've been using the following for session variables

re: Using cflock and when under different circumstances

2004-06-10 Thread Robert Munn
Best practices says you should lock all shared scope access, reads and writes. Reads can be locked using a readonly lock, while writes need an exclusive lock. See Using Persistent Data and Locking in Developing ColdFusion MX Applications in the CFMX Docs for best practices. Personally, I don't

RE: Using cflock and when under different circumstances

2004-06-10 Thread Hoe
with income tax, lock as little as possible, but never less than you have to. Cheers, barneyb -Original Message- From: Hoe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 9:56 AM To: CF-Talk Subject: re: Using cflock and when under different circumstances Hello, I'm having

RE: Using cflock and when under different circumstances

2004-06-10 Thread Barney Boisvert
- From: Hoe [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 12:17 PM To: CF-Talk Subject: RE: Using cflock and when under different circumstances Sorry but your answer kinda went over my head. On Thu, 10 Jun 2004 10:40:23 -0700, Barney Boisvert wrote: In CFMX you never need

Re: Using cflock and when under different circumstances

2004-06-10 Thread Robert Munn
In CFMX you never need to lock shared scopes just because they're shared scopes (this is a change from previous versions).Now you only need to worry about race conditions. Nice tidbit there, thanks. I heard Ben Forta's simplified version of this change awhile ago. The simplified version was You