Re: Newbie Locking Question

2004-03-08 Thread Cutter (CF-Talk)
t; Blog   > http://www.tacofleur.com/index/blog/ > Methodology http://www.tacofleur.com/index/methodology/ > > Tell me and I will forget > Show me and I will remember > Teach me and I will learn > > -Original Message- > From: Bob Haroche [mailto:[EMAIL PROTECTED]

RE: Newbie Locking Question

2004-03-07 Thread Taco Fleur
Yes, but if I'm going to delete and re-initialize the Application scope variables (at least other than very rarely) then I really should use read only locks around the queries and expressions that include those application variables, right? I say no, I never lock any reads for Constants like th

Re: Newbie Locking Question

2004-03-07 Thread Bob Haroche
First off, thanks again for all the follow up. The level and quality of feedback, and tolerance for beginners, on this list is great. Taco Fleur wrote: > Now if you need to reinitialize these settings you simple do > > > and they are all gone. Yes, but if I'm going to delete and re-initialize t

RE: Newbie Locking Question

2004-03-07 Thread Taco Fleur
remember Teach me and I will learn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, 8 March 2004 10:53 AM To: CF-Talk Subject: RE: Newbie Locking Question    Set once for the application. Peter Tilbrook Transitional Services - Enterprise eSolutions

RE: Newbie Locking Question

2004-03-07 Thread Jim Davis
hread-safe, not the variable in the struct. Or, at least that's what I've been told. Jim Davis   _   From: Bob Haroche [mailto:[EMAIL PROTECTED] Sent: Sunday, March 07, 2004 7:24 PM To: CF-Talk Subject: Newbie Locking Question Using CF 5... If I set an Applica

RE: Newbie Locking Question

2004-03-07 Thread Taco Fleur
2004 10:24 AM To: CF-Talk Subject: Newbie Locking Question Using CF 5... If I set an Application variable once in Application.cfm that is (theoretically) never going to change, eg: Do I really need to place "read only" locks around every query in the application that wants to access tha

RE: Newbie Locking Question

2004-03-07 Thread peter . tilbrook
[EMAIL PROTECTED]>     net.au>  cc:    Subject:  RE: N

RE: Newbie Locking Question

2004-03-07 Thread Taco Fleur
://www.tacofleur.com/index/methodology/ Tell me and I will forget Show me and I will remember Teach me and I will learn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, 8 March 2004 10:40 AM To: CF-Talk Subject: Re: Newbie Locking Question Use the "request&q

Re: Newbie Locking Question

2004-03-07 Thread peter . tilbrook
tions.com> cc:           Subject:  Newbie Locking Question     08/03/2004 11:24       

RE: Newbie Locking Question

2004-03-07 Thread Andy Ousterhout
No.   -Original Message-   From: Bob Haroche [mailto:[EMAIL PROTECTED]   Sent: Sunday, March 07, 2004 6:24 PM   To: CF-Talk   Subject: Newbie Locking Question   Using CF 5...   If I set an Application variable once in Application.cfm that is   (theoretically) never going to change, eg

Newbie Locking Question

2004-03-07 Thread Bob Haroche
Using CF 5... If I set an Application variable once in Application.cfm that is (theoretically) never going to change, eg: Do I really need to place "read only" locks around every query in the application that wants to access that database? I could see the need to do that if the Application.DNS

RE: Locking question?

2003-01-23 Thread Gaulin, Mark
No locking is needed for the REQUEST scope. -Original Message- From: Tilbrook, Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 6:09 PM To: CF-Talk Subject: Locking question? Do I need to LOCK variables (when setting or reading)variables in the REQUEST scope

RE: Locking question?

2003-01-22 Thread Everett, Al
Nope. Just Session, Server and Application scopes. > -Original Message- > From: Tilbrook, Peter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 6:09 PM > To: CF-Talk > Subject: Locking question? > > > Do I need to LOCK variables (when setting or

Locking question?

2003-01-22 Thread Tilbrook, Peter
Do I need to LOCK variables (when setting or reading)variables in the REQUEST scope - particularly in the application.cfm? My thoughts are no I don't but I wanted to check. Cheers! == Peter Tilbrook Internet Applications Developer Australian Building Codes Board GPO Box 9839 CANBERRA ACT 2601 AU

Re: Another Locking Question

2003-01-14 Thread Sean A Corfield
On Monday, Jan 13, 2003, at 22:27 US/Pacific, Matt Robertson wrote: > Client vars are, for my money, the Holy Grail with respect to > completely > replacing session vars. Scaleable to clusters, zero locking issues, > maintain state, and expiration can be controlled precisely like session > vars w

RE: Another Locking Question

2003-01-13 Thread Matt Robertson
Dave Watts wrote >In general, I'm not a big fan of this approach, Me neither, especially since not locking the session var in the isdefined() as was shown in the original post is improper. You would have to lock the whole thing, cfif isdefined and all. Client vars are, for my money, the Holy Gra

RE: Another Locking Question

2003-01-13 Thread Dave Watts
> I got a tip previously on cf-talk that advised me to do > this in my application.cfm: > > > > > > > > > > > > > > Is this good or bad? (My sites typically have between 10 > and 200 connections.) In general, I'm not a big fan of this approach, which

YET Another Locking Question

2003-01-13 Thread Haggerty, Mike
I heard someone mention temp variables, and I had some questions about best practices in using them. Anyone mind giving some peer review? I am serious about locking all application and session scope variables. In my application.cfm, I put a read-only lock around the application scope and duplicate

Re: Another Locking Question

2003-01-13 Thread Christian Cantrell
If you are going to put initialization code like this in your Application.cfm file, just be sure that you do not use any code that can generate another HTTP request for another CFM file (such as a cfhttp tag) as you may either create an infinite loop (with a readonly lock) or a deadlock (wi

Another Locking Question

2003-01-13 Thread Mike Alberts
You're right. It does create a nested lock situation. Realized this while I was coding it after I posted. So I changed it to this: Open readonly lock cfif NOT IsDefined(SomeApplicationVariable) set AppIsInitialized = "N" else set AppIsInitialized ="Y" close cfif Close readonly lock

RE: Another Locking Question

2003-01-13 Thread Everett, Al
variables we need in the Request scope. > -Original Message- > From: Mike Alberts [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 13, 2003 2:02 PM > To: CF-Talk > Subject: Another Locking Question > > > Ok, I thought I had the locking thing squared away, but af

Another Locking Question

2003-01-13 Thread Mike Alberts
Ok, I thought I had the locking thing squared away, but after reading this thread, I realize that I do not. I was not aware of the potential problems of using an exclusive lock in the Application.cfm file. So ... is this (psuedo) code a reasonable solution? Open readonly lock If NOT IsDefined

Re: Another Locking Question

2003-01-13 Thread Chris Norloff
Yes. Yes. -- Original Message -- From: "Webmaster" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] date: Sun, 12 Jan 2003 15:23:55 -0500 >Hi, > If I reference an APPLICATION var using isDefined, do I have to read lock >it. Is the var really being read? >

RE: Another Locking Question

2003-01-12 Thread Matt Robertson
ct: Re: Another Locking Question On Sunday, Jan 12, 2003, at 13:23 US/Pacific, Matt Robertson wrote: > I have yet > to see any instance where locking instituted any noticeable performance > penalty at any level. If you lock within Application.cfm, you will single-thread your applicati

Re: Another Locking Question

2003-01-12 Thread Sean A Corfield
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 oversimplificatio

Re: Another Locking Question

2003-01-12 Thread Antony Sideropoulos
I got a tip previously on cf-talk that advised me to do this in my application.cfm: Is this good or bad? (My sites typically have between 10 and 200 connections.) > >Sean A Corfield wrote: > > On Sunday, Jan 12, 2003, at 13:23 US/Pacific, Ma

Re: Another Locking Question

2003-01-12 Thread Jochem van Dieten
Sean A Corfield wrote: > On Sunday, Jan 12, 2003, at 13:23 US/Pacific, Matt Robertson wrote: > >>I have yet >>to see any instance where locking instituted any noticeable performance >>penalty at any level. > > > If you lock within Application.cfm, you will single-thread your > application and i

Re: Another Locking Question

2003-01-12 Thread Sean A Corfield
On Sunday, Jan 12, 2003, at 13:23 US/Pacific, Matt Robertson wrote: > I have yet > to see any instance where locking instituted any noticeable performance > penalty at any level. If you lock within Application.cfm, you will single-thread your application and it will not scale. For low-traffic app

RE: Another Locking Question

2003-01-12 Thread Matt Robertson
ailto:[EMAIL PROTECTED]] Sent: Sunday, January 12, 2003 12:24 PM To: CF-Talk Subject: Another Locking Question Hi, If I reference an APPLICATION var using isDefined, do I have to read lock it. Is the var really being

Re: Another Locking Question

2003-01-12 Thread Gyrus
- Original Message - From: "Webmaster" <[EMAIL PROTECTED]> > If I reference an APPLICATION var using isDefined, do I have to read lock > it. Is the var really being read? --- Yep - if you're not on CFMX, even IsDefined("sharedScope.varName") needs a lock around i

Re: Another Locking Question

2003-01-12 Thread Sean A Corfield
On Sunday, Jan 12, 2003, at 12:23 US/Pacific, Webmaster wrote: > If I reference an APPLICATION var using isDefined, do I have to read > lock > it. Is the var really being read? No, but... If you are trying to avoid a race condition, you may need to lock. See my blog entry: http://www.corfie

Another Locking Question

2003-01-12 Thread Webmaster
Hi, If I reference an APPLICATION var using isDefined, do I have to read lock it. Is the var really being read? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com

RE: locking question

2001-06-02 Thread Garza, Jeff
You can lock them all as a group. Cheers, Jeff Garza Webmaster, Spectrum Astro, Inc. [EMAIL PROTECTED] -Original Message- From: Alii Design To: CF-Talk Sent: 6/2/01 8:18 AM Subject: locking question Do you need to lock each session variable individually or can you lock them all as a

locking question

2001-06-02 Thread Alii Design
Do you need to lock each session variable individually or can you lock them all as a group using a cfscript? Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://

RE: Locking Question

2001-05-14 Thread Benjamin S. Rogers
.net Voice: (508) 240-0051 Fax: (508) 240-0057 -Original Message- From: David Baskin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 5:10 PM To: CF-Talk Subject: Locking Question Hello, i'm setting a session variable in a template so i'm using cflock, but i'm getting

Locking Question

2001-05-14 Thread David Baskin
Hello, i'm setting a session variable in a template so i'm using cflock, but i'm getting an error on the scope attribute. i've checked the documentation and it doesn't list scope as valid, but it shows up in Studio and well, it just makes sense that you would use scope. Below is the code i was try

Re: session variable locking question

2001-03-23 Thread Jon Hall
CTED]> Sent: Friday, March 23, 2001 5:41 PM Subject: RE: session variable locking question > I was wondering, is there somewhere I can find a good discussion on why > locking session variables is a good idea? I have heard that it is something > that should be done, but our project lea

RE: session variable locking question

2001-03-23 Thread Chris Martin
I was wondering, is there somewhere I can find a good discussion on why locking session variables is a good idea? I have heard that it is something that should be done, but our project leader insists that we do not need to do it. What are the pros and cons of locking session variables? Chris Ma

RE: session variable locking question

2001-03-23 Thread Dave Watts
> Should client variables such as the following be inside a ? No. Only memory variables (session, application, server) need to be locked. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Str

RE: session variable locking question

2001-03-23 Thread Bob Silverberg
;t the attached code a bad idea? I was given the impression that it's not a good idea to monkey around manually with CFs client variable database. Bob -Original Message- From: W Luke [mailto:[EMAIL PROTECTED]] Sent: March 23, 2001 3:03 PM To: CF-Talk Subject: Re: session variable locki

Re: session variable locking question

2001-03-23 Thread W Luke
Message- > From: Tim Bahlke [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 22, 2001 2:15 PM > To: CF-Talk > Subject: session variable locking question > > > In the following code, do I need a lock around the entire cfif statement? > > > > > > &

RE: session variable locking question

2001-03-22 Thread Phoeun Pha
ailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 2:15 PM To: CF-Talk Subject: session variable locking question In the following code, do I need a lock around the entire cfif statement? Is it better to declare [lock][lock] instead of the IsDefined fun

session variable locking question

2001-03-22 Thread Tim Bahlke
In the following code, do I need a lock around the entire cfif statement? Is it better to declare [lock][lock] instead of the IsDefined function? Thanks, Tim Bahlke ~~ Structure your ColdFusion code with Fu

RE: Locking question

2001-02-17 Thread Patricia Lee
lusive locks because after the isdefined(), which by itself only requires a readonly lock, you're modifying the session variables. |-Original Message- |From: Jon Hall [mailto:[EMAIL PROTECTED]] |Sent: Saturday, February 17, 2001 5:11 PM |To: CF-Talk |Subject: Locking question |

Re: Locking question

2001-02-17 Thread Jeffry Houser
Jon Hall wrote: > I have seen all of the warnings to make sure to use around any of > the in memory variable types in a CF application. I hear that every access > of a session, or application variable should have around it, or I > could enable automatic locking on the server which will exact

Locking question

2001-02-17 Thread Jon Hall
I have seen all of the warnings to make sure to use around any of the in memory variable types in a CF application. I hear that every access of a session, or application variable should have around it, or I could enable automatic locking on the server which will exact a performance hit though. I

RE: Simple locking question

2000-09-15 Thread Cameron Childress
> It works the same as session variables, though not quite as fast > they work a > lot better and I don't have to worry about the locking all over the place. > They use the same session.urltoken as session variables. They do work pretty much the same, but you would need to keep in mind that you c

RE: Simple locking question

2000-09-15 Thread Robert Everland III
ECTED]] Sent: Friday, September 15, 2000 8:20 PM To: [EMAIL PROTECTED] Subject: Re: Simple locking question > Personally I use Client variables located in a database exclusively. That > way my application can easily made to be cluster aware and the database > takes care of the locking. So

Re: Simple locking question

2000-09-15 Thread Chris Lott
> Personally I use Client variables located in a database exclusively. That > way my application can easily made to be cluster aware and the database > takes care of the locking. So at an abstract level, how does that work? Currently I just assign the needed information to session variables and a

RE: Simple locking question

2000-09-15 Thread Robert Everland
]] Sent: Friday, September 15, 2000 2:32 PM To: [EMAIL PROTECTED] Subject: Re: Simple locking question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I read the Allaire article on locking and am now using locks when working with session variables. Now I am wondering if I should be using session

Re: Simple locking question

2000-09-15 Thread Chris Lott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I read the Allaire article on locking and am now using locks when working with session variables. Now I am wondering if I should be using session variables at all? In my app, the user logs in and at that time I put a bunch of information about them (

Simple locking question

2000-09-13 Thread Chris Lott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I read the Allaire article on locking and am now using locks when working with session variables. Now I am wondering if I should be using session variables at all? In my app, the user logs in and at that time I put a bunch of information about them (

RE: YAFLQ (Yet Another "Fine" Locking Question)

2000-09-01 Thread Ben Forta
0 3:07 PM To: [EMAIL PROTECTED] Subject: RE: YAFLQ (Yet Another "Fine" Locking Question) Sounds like some relaxing reading for the Labor Day weekend... I can hear my wife now... "What are you reading?" .. Just trying to brush up on the finer points of avoiding corrupted

RE: YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Jeremy Allen
ther "Fine" Locking Question) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You'll want to modify that code a bit... You're better off avoiding any locks around things like CFQUERY that can take a while to run. Just skimming the code, it looks like you're READING ses

RE: YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Aaron Johnson
OTECTED]] Sent: Thursday, August 31, 2000 10:54 AM To: '[EMAIL PROTECTED]' Subject: RE: YAFLQ (Yet Another "Fine" Locking Question) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You'll want to modify that code a bit... You're better off avoiding any locks around thin

RE: YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Zachary Bedell
if the string > is greater it returns a positive value (the strings were not equal > yet just doing compare would then mean the statement would evaluate > to the truth which is not what you would intend) > > Anyhow ill hush now :) > > > Jeremy Allen > [EMAIL PROTECTED] > Insert Quarter H

RE: YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Dave Watts
> If I have references to session variables that are nested, > do I need to lock each reference separately or can I wrap > the whole thing in one lock? You can, and probably should, wrap them all within one lock. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496

RE: YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Jeremy Allen
ow ill hush now :) Jeremy Allen [EMAIL PROTECTED] Insert Quarter Here >[]< -Original Message- From: Ricq Pattay [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 31, 2000 10:28 AM To: [EMAIL PROTECTED] Subject: YAFLQ (Yet Another "Fine" Locking Question) If I have re

Re: YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Ricq Pattay
Sorry, that first lock should be type="readonly". > Ricq Pattay <[EMAIL PROTECTED]> Univ of Minnesota - Twin Cities College of Veterinary Medicine -- Archives: http://www.mail-archive.com/cf-

YAFLQ (Yet Another "Fine" Locking Question)

2000-08-31 Thread Ricq Pattay
If I have references to session variables that are nested, do I need to lock each reference separately or can I wrap the whole thing in one lock? e.g., select message_text from vcross.messages where [LOCK HERE?] message_type = 'student' [LOCK HERE?] message_type = 'faculty'