Ask a Question related to Coldfusion Database Access, Design and Development.
-
Brian Hogue #1
can you test for a cached query?
Is there something like IsDefined that tests for a cached query? If yes, I
can use that to avoid going back to the DB. thanks in advance
-brian
Brian Hogue Guest
-
Cached page and query results, help!
I have a frameset and on one frame I have a CFGrid. When I click on an entry in the grid, that same frame replaces itself with the record detail.... -
Cached query
I have got this query <CFQUERY NAME="GetImportData" DATASOURCE="ExcelNordic" USERNAME="#Application.SQLUserName#"... -
how long is query cached without cachewithin tags?
Hi, I have a query that is used later in a "query of query". I was wondering how long the first query is cached if I don't add a cachewithin tag?... -
expired cached query
:rose; How can I catch the error produced when a user tries to refresh a page that depends on a cached query to display content, once the query has... -
Using aggregrate function sum() from within Cached Query
Hi, I have a query which returns say total 30 records. Now, form within these 30 records, I am using another Cached query which will retrive... -
JMGibson3 #2
Re: can you test for a cached query?
You don't have to test. Simply run the query. If the time limit has not
expired and the SQL (if you use dynamic SQL) for that query name is identical
to the last time, CF will skip the DB trip. You can turn on debugging to see
it happen, "Time=Cached Query vs. Time=141ms), BTW, to force a cache refresh,
run it with CreateTimeSpan(0,0,0,0) and if you wish (so next real user need not
suffer wait time) run it again with your normal limit.
ApplNameList (Records=32, Time=Cached Query)
SQL =
SELECT 'ALL' as ApplName, null as ApplNameSort FROM tblErrorLog
UNION
SELECT DISTINCT ApplName, ApplName as ApplNameSort FROM tblErrorLog
ORDER BY ApplNameSort
JMGibson3 Guest



Reply With Quote

