Nope, you can store queries in the application, session, or server scope. Whatever makes sense to your application.
On Wed, 8 Dec 2004 11:08:30 -0500, Katz, Dov B (IT) <[EMAIL PROTECTED]> wrote: > Are CF Queries (running mx 6.1) safe to store in an application scope or > some sort of cache (other than via using cachedwithin, etc....) or are > they holding on to DB Resources which I can only relinquish when the > page request ends?? > > I will eventually move the cf queries into real CFC data objects, but as > a stopgap measure, I am looking for something which can lighten the load > on the DB... > > Example, > > I have a page like this > > <Cfquery name="GetObject"> > select somethign where objectid=<CFQUERYPARAM .... #someIDArgument# > > </cfquery> > > What I'd like to do is cache QueryObjects against ObjectID's in a global > Struct at the application and implement my own expiration logic. > > This being said, is there any concern of caching a query obj? > > -Dov > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender does > not waive confidentiality or privilege, and use is prohibited. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186687 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

