Request scope isn't well documented; it's a way of bypassing the variable
protection in custom tags.  For instance, if you set request.myVar in
application.cfm, that variable will be available in all custom tags and
their child tags.

Jason, the answer is yes; that will increase performance.  And if you're
using 4.5x, you should change from using name="Application" to
scope="Application".

David

> -----Original Message-----
> From: David Cummins [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 18, 2000 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Could request alleviate locking concerns?
>
>
> Jeez Louise, I've never heard of the Request scope. Is there
> anywhere that has a
> definitive list of all the scopes?
>
> David
>
> [EMAIL PROTECTED] wrote:
> >
> > Just wanting some opinions on using the request scope to hold
> "copies" of
> > application and server variables (only the necessary ones, not an entire
> > StructCopy())
> >
> > Would this increase performance by decreasing the number of
> locks that occur
> > on a page? It would look something like this:
> >
> > [ snippet ]-----
> >
> > <cflock name="Application">
> >         <cfscript>
> >                 Request.myVariable = Application.myVariable;
> >                 Request.myVariable2 = Application.myVariable2;
> >         </cfscript>
> > </cflock>
> > <cflock name="Server">
> >         <cfscript>
> >                 Request.myVariable = Server.myVariable;
> >                 Request.myVariable2 = Server.myVariable2;
> >         </cfscript>
> > </cflock>
> >
> > [ instead of ]-----
> >
> > <cflock name="Application"><cfset Variables.myVariable =
> > Application.myVariable></cflock>
> > <cflock name="Application"><cfset Variables.myVariable2 =
> > Application.myVariable2></cflock>
> >
> > Opinions? Comments? Send flames directly. ;-)
> >
> > Jason Stiefel
> > Software Engineer
> > iXL, Inc.
> > 1930 Camden Road, Suite 2070
> > Charlotte, NC 28203
> > tel. 704.943.7000
> > fax. 704.943.7001
> > [EMAIL PROTECTED]
> >
> >
> ------------------------------------------------------------------
> ------------
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to