> If you use onRequestStart(), you'll set those variables on every page 
> request. 
>That's a lot of unnecessary overhead no matter how small it 
> is. If you used onApplicationStart(), you'd set the two application 
> variables once and then reference them from memory. The application 
> variables would be my preferred approach.
> 
> HTH, 
> 
> Adrian J. Moreno
> http://www.iknowkungfoo.com/blog/

Thanks, Adrian, for your input.

For the heck of it, I tried the following (which seems logical), however, it 
won't work for cf8 does not seem to support onVariablesStart function...

<cffunction name="onVariablesStart" returnType="string">    
    <cfset variables.meatDS = "goMeatDB">
    <cfset variables.nutsDS = "goNutsDB">
    ...
</cffunction>

Using the following approach:
<cffunction name="onApplicationStart" returnType="string">    
    <cfset Application.meatDS = "goMeatDB">
    <cfset Application.nutsDS = "goNutsDB">
    ...
</cffunction>
would require lots of code change from the affected templates as I described in 
my OP...

I guess with cf8, it simply does not support Variables Scop at global level.  
True or False?

Don


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302206
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to