Re: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Azadi Saryev
even whitespace inside sql statement must be the same! so mind those tabs/spaces in your code formatting... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Dave Watts wrote: >> What if at the end of the process I ran the query using the same query name >> and no caching. Would that actual

Re: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Dave Watts
> What if at the end of the process I ran the query using the same query name > and no caching. Would that actually get rid of the cached query? That won't work, but you can flush a single query from the cache by rerunning the query with only one change - set CACHEDWITHIN to CreateTimeSpan(0, 0,

Re: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Dave Watts
> I wonder if it also needs the same params, doesn't CF8 allow cached queries > with cfqueryparam? Maybe change the param to something that'll return an > empty result. CF 8 does allow cached queries with CFQUERYPARAM. However, it requires the bound parameter values to match before it uses the ca

RE: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Adrian Lynch
uation? Adrian > -Original Message- > From: Robert Harrison [mailto:rob...@austin-williams.com] > Sent: 11 February 2009 16:23 > To: cf-talk > Subject: RE: Query Caching Function: Clearing Cached Query > > > I looked in the docs first. > > What if at the end of the

RE: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Robert Harrison
I looked in the docs first. What if at the end of the process I ran the query using the same query name and no caching. Would that actually get rid of the cached query? Robert B. Harrison Director of Interactive services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631

RE: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Adrian Lynch
16:07 > To: cf-talk > Subject: Query Caching Function: Clearing Cached Query > > > I have a huge query that is used in a timed loop process completes. The > process could take from a minute to 15 hours, and it runs the query > each > time is goes through a loop. > > If I

Query Caching Function: Clearing Cached Query

2009-02-11 Thread Robert Harrison
I have a huge query that is used in a timed loop process completes. The process could take from a minute to 15 hours, and it runs the query each time is goes through a loop. If I cache the query (cached within the last 15 hours), it can save a lot of re-querying processing... but what if the pro