RE: Application vs Request scope

2004-04-23 Thread Dave Watts
> Which is more readable? > > #createTimeSpan(0, 0, 0, 10)# > 0.000115741 > > Sure, the execution time is slightly less for the latter, but > if you care about that last few microseconds, I'd highly > recommend dumping CF for assembler.  The beauty of CF is that > it's really easy to learn, co

RE: Application vs Request scope

2004-04-23 Thread Barney Boisvert
barneyb > -Original Message- > From: Thomas Chiverton [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 8:29 AM > To: CF-Talk > Subject: Re: Application vs Request scope > > On Friday 23 Apr 2004 16:17 pm, Matt Robertson wrote: > > cachedwithin="

RE: Application vs Request scope

2004-04-23 Thread Matt Robertson
Thomas Chiverton wrote: >you can put a fractional day here, rather than doing a >createTimeSpan() for every page request. Yes, ever since Michael posted that on HoF I've been doing it, and it makes a lot of sense.  I still use CreateTimeSpan when I plug in parameters instead of hardcoding the exp

Re: Application vs Request scope

2004-04-23 Thread Thomas Chiverton
On Friday 23 Apr 2004 16:17 pm, Matt Robertson wrote: > cachedwithin="#CreateTimeSpan(0,0,0,10)#"> Just a quickie, but you can put a fractional day here, rather than doing a createTimeSpan() for every page request. cfdump a createTimeSpan call to see what I mean. -- Tom Chiverton Advanced Col

RE: Application vs Request scope

2004-04-23 Thread Matt Robertson
p.s. leave that silly maxrows statement out. --Matt-- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Application vs Request scope

2004-04-23 Thread Matt Robertson
Spectrum Web Design wrote: >Hi Matt. Do you can share this technique about >store application/request vars in DB ? Interesting... Sure, but given CF 6+'s handling of shared memory vars, I wouldn't consider this unless you are on CF 5 or need to be compatible with it. Anyway... I have a table nam

Re: Application vs Request scope

2004-04-23 Thread Spectrum Web
Hi Matt. Do you can share this technique about store application/request vars in DB ? Interesting... > I use request scope.  Declaration is short and simple.  No resource > drain noticeable. > > Are all shared scope reads safe to no lock now?  I thought it was only > session var reads that were

RE: Application vs Request scope

2004-04-22 Thread Jim Davis
On CF 5 and below I use the request scope.  No locking is required, but you do have multiple copies of the same information using resources (although no more copies than allowable threads on the server).  For large data sets or data which takes a while to fetch (queries) I use the Application scope

RE: Application vs Request scope

2004-04-22 Thread Barney Boisvert
ll is before the cfc's init() method is called.  Legal, but usually not what you want at all. Cheers, barneyb > -Original Message- > From: Chris Alvarado [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 2:12 PM > To: CF-Talk > Subject: RE: Application vs

Re: Application vs Request scope

2004-04-22 Thread Jochem van Dieten
Chris Alvarado wrote: > Can you please describe a race condition to me? > > I know what it means conceptually, basically when you have one thing > that needs to happen before another an not simultaneously, but I cant > really think of an instance where this would be the case. Imagine the foloowin

RE: Application vs Request scope

2004-04-22 Thread Barney Boisvert
22, 2004 2:08 PM > To: CF-Talk > Subject: RE: Application vs Request scope > > Barney Boisvert wrote: > >In CFMX, everything is completely safe to use without any locking.   > >You only ever need to lock for race conditions. > > *everything* as in reads AND write

RE: Application vs Request scope

2004-04-22 Thread Chris Alvarado
developer ] 4 Guys Interactive, Inc. 281.807.4344 x1716   _   From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 3:57 PM To: CF-Talk Subject: RE: Application vs Request scope > Are all shared scope reads safe to no lock now?  I thought it > was only sessi

RE: Application vs Request scope

2004-04-22 Thread Matt Robertson
Barney Boisvert wrote: >In CFMX, everything is completely safe to use without any locking.   >You only ever need to lock for race conditions. *everything* as in reads AND writes?  I could have sworn the rule was reads only. OMIGOD I helped propagate another locking thread.  There's only one hono

RE: Application vs Request scope

2004-04-22 Thread Raymond Camden
> Are all shared scope reads safe to no lock now?  I thought it > was only session var reads that were completely safe. > No, im MX they are all safe - you only have to worry about race conditions. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Application vs Request scope

2004-04-22 Thread Barney Boisvert
u know exactly when you have to flush, and you never flush when it's not needed. Cheers, barneyb > -Original Message- > From: Matt Robertson [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 1:48 PM > To: CF-Talk > Subject: Re: Application vs Request scope >

Re: Application vs Request scope

2004-04-22 Thread Matt Robertson
I use request scope.  Declaration is short and simple.  No resource drain noticeable. Are all shared scope reads safe to no lock now?  I thought it was only session var reads that were completely safe. Another thing I use a lot of is a cached db query.  I'll have a table with a structure that has