Yeah, I think Bill is right. I know I read this somewhere and I'm sure
you could google it. But yeah, hits the DB one time to populate the
CLIENT scope at the begining of the request, and I believe it hits it
a second time to update the client vars in the db after the request.

All in all, most will tell you to avoid client vars all together.

If you are using CFMX then you should enable j2ee sessions and cluster
JRun. (Although dont try to get a CFC to replicate, only simple vars).

-Adam

On 4/19/05, Bill Rawlinson <[EMAIL PROTECTED]> wrote:
> i doubt it.  more than likely it initializes the client variable scope on
> the request and persists it throughout the request - else how would you copy
> the client variable structure to the request struct etc?
> 
> 
> 
> 
> On 4/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> > 
> > 
> > If one is using database storage of client variables, does CF make a 
> > database trip everytime one references a client scoped variable?
> > 
> > In other words, if you referenced client.name 50 times throughout a
> request
> > would it make sense to copy that once to another scope before calling it? 
> > (i.e. <cfset request.name = client.name> )
> > 
> > Jason Cronk
> > [EMAIL PROTECTED]
> > 
> >
> ----------------------------------------------------------
> > You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
> > 
> > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
> > 
> > An archive of the CFCDev list is available at 
> > www.mail-archive.com/[email protected]
> > 
> > 
> 
> 
> 
> -- 
> [EMAIL PROTECTED]
> http://blog.rawlinson.us
> 
> If you want Gmail - just ask.
> ----------------------------------------------------------
> 
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
> 
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]


Reply via email to