Hi Stephen,
So, request variables are only in memory for as long as the HTML page request is
actually happening. As soon as the page request is over, they go away.
What is your opinion on the performance drain of using request variable vs.
application variables on a very large site?
Since request variables don't have to be locked, as long as you have enough memory on
your server, the performance should be superior to application variables, no?
What is your opinion?
Thanks,
Douglas Smith
At 04:07 PM 9/27/00 +0100, Stephen Moretti (IVL Onsite) wrote:
>Hi Neil,
>>
>> The writer does recommend not using application variables for the
>datasource
>> name:
>> "Although application variables are widely used to store data source
>names,
>> it probably makes more sense to avoid using an application variable in
>this
>> case. This can be done by instead setting a request scope variable in the
>> application.cfm file."
>>
>Whoops! Must have skipped that bit... Don't know why they think that....
>
>>
>> I could just as easily keep all of my request scope variable in one place.
>> Without having the drawbacks of locking requirements. It seems that the
>more
>> variables that are set using shared scope the greater the performance loss
>> due to locking requirements.
>>
>> Let me rephrase my question. Why would I use shared scope variables over
>> request scope variables?
>>
>You could just as easily set them all as requet scope, but that would mean
>that every user on your site would use a piece of the memory on your server
>and use the server *everytime* they hit the application.cfm to set those
>variables. If you use a CFIF that checks the status of a key application
>variable around your CFSETs then all you do it hit the server everyone once
>in a while and use one little bit of memory for the global variables.
>
>Does that make any sense??
>
>Regards
>
>Stephen
>
>------------------------------------------------------------------------------
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
====================================================
Douglas M. Smith - Database Architect/Web Integration Specialist
====================================================
TeraTech Inc - Tools for Programmers(tm)
VisualBasic, Web (ColdFusion and ASP), Math and Statistics,
Access, SQL, programming tools & consulting
100 Park Ave, Suite 360, Rockville MD 20850 USA
Voice: 301-424-3903, Fax: 301-762-8185
http://www.teratech.com
====================================================
Email: [EMAIL PROTECTED]
Mobil/Cell Phone: (240) 601-5520
ICQ: 41044319
====================================================
Do you need a group calendar or scheduler?
How about a free ColdFusion Tag and Function Reference?
Go to http://www.teratech.com/freestuff.cfm
====================================================
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.