Benjamin,
I would also like to add, that the cfcache is really a discuised application
variable. With this I mean that it stores it in memory and (I think this
part is right) is referenced by the query name. So what you can effectively
do is create queries that are the same, don't worry too much about extra
info. What happens here is that you end up being able to use the queries
with the same name, and it will use the cached copy already used. Very good
in sites that could have very hefty processing on the server.
-----Original Message-----
From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 4 March 2001 3:05 AM
To: CF-Talk
Subject: RE: Which is better?
> why not just run a query on that page?
Every time your application has to retrieve data from an external
datasource, be it a SQL database or page fetched with CFHTTP, you increase
the page execution time dramatically and increase your reliance on external
devices such as the network, the server that houses the datasource, the SQL
Server, etc. For these reasons, it is usually preferable to use caching
mechanisms where appropriate in order to make your application faster and
more self reliant.
Benjamin S. Rogers
Web Developer, c4.net
Voice: (508) 240-0051
Fax: (508) 240-0057
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists