|From: Bert Dawson [mailto:[EMAIL PROTECTED]
|Whether or not the RDBMS caches it CF will still have to go to
|the dB server and get it. If you use cachedwithin (or
|cachedafter) then it stays in CF's memory, and no trips to the
|dB are required, so i'd say cache it.
|And don't forget you could put it in a persistent scope
|(either "application" or "server" in this case) by using
|<cfquery name="application.myquery" etc...>, and only running
|the query when you start up the application.
|There are pluses and minuses for bother cachedwithin/after and
|persistent scope caching - it depends on the individual case...

Personally I never use cachedwithin -- since you can't use cfqueryparam
with that. Cache within the application scope!

/H.
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=35

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183333
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to