Vince,

You don't want to be reinstantiating those objects into the request
scope on every request.

The data may change often, but the CODE to retrieve that data isn't
going to change *THAT* often, is it?

What you'd want to do is something like this:

<cfset request.dsn = "mydatabase" />
<cfif not isDefined("application.init") or isDefined("url.reinit")>
    <cfset application.inventory = createObject("component",
"cfcs.inventory").init(request.dsn) />
    <cfset application.classes = createObject("component",
"cfcs.classes").init(request.dsn) />
    <cfset application.init = true>
</cfif>

If your objects are holding data, for example, a list of inventory
items.. you just have to make sure that whenever you ADD or UPDATE or
DELETE inventory, then you also update the data that the object itself
is holding

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288947
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