Query Caching Limit?

2009-02-19 Thread Robert Harrison
The default limit in CF Admin for cached queries is 100. We do cache queries, but have had some issues with query timeout. Is there a larger limit I can set that would be reasonable? Robert B. Harrison Director of Interactive services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge

RE: Query Caching Limit?

2009-02-19 Thread Robert Harrison
be . -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Thursday, February 19, 2009 9:15 AM To: 'cf-talk@houseoffusion.com' Subject: Query Caching Limit? The default limit in CF Admin for cached queries is 100. We do cache queries, but have had some issues

AW: Query Caching Limit?

2009-02-19 Thread Gert Franz
/0CF7D323BBC1 Bug tracker:http://jira.jboss.org/jira/browse/RAILO Railo Blog: http://www.railo-technologies.com/blog -Ursprüngliche Nachricht- Von: Robert Harrison [mailto:rob...@austin-williams.com] Gesendet: Donnerstag, 19. Februar 2009 15:20 An: cf-talk Betreff: RE: Query Caching Limit

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

RE: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Adrian Lynch
: 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 cache the query (cached within the last 15 hours), it can save

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 :

RE: Query Caching Function: Clearing Cached Query

2009-02-11 Thread Adrian Lynch
-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 process I ran the query using the same query name

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

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 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 actually

Odd query caching

2007-08-31 Thread Cutter (CFRelated)
Running into some odd behavior, that maybe someone can give me insight on. On CF8, connecting to MS SQL, I'm seeing some very odd situations, whereby my query results are being cached, even though I haven't coded them to be. I run a template, that dumps query results, and get 23 values back. I

Re: Advice about query caching

2006-11-13 Thread Paul Boyd
Thanks everyone for your input. - Paul Hello everyone, First post here, so don't get too hard on me. I'm developping a small e-commerce application with less than 1000 products ( around 700). As far as I know, only product prices would be updated on a weekly basis. I'm not too

Advice about query caching

2006-11-12 Thread Paul Boyd
Hello everyone, First post here, so don't get too hard on me. I'm developping a small e-commerce application with less than 1000 products ( around 700). As far as I know, only product prices would be updated on a weekly basis. I'm not too sure how to handle caching. So here is my question. Is

Re: Advice about query caching

2006-11-12 Thread Doug Brown
with a timeout of say 6 days. Hope this helps. Doug B. - Original Message - From: Paul Boyd [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Sunday, November 12, 2006 4:05 AM Subject: Advice about query caching Hello everyone, First post here, so don't get too hard on me. I'm

Re: Advice about query caching

2006-11-12 Thread Paul Boyd
: Paul Boyd [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Sunday, November 12, 2006 4:05 AM Subject: Advice about query caching Hello everyone, First post here, so don't get too hard on me. I'm developping a small e-commerce application with less than 1000 products ( around

Re: Advice about query caching

2006-11-12 Thread Doug Brown
. - Original Message - From: Paul Boyd [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Sunday, November 12, 2006 4:55 AM Subject: Re: Advice about query caching Thanks Doug, Your feedback is greatly appreciated. Could you tell me why storing a recordset in an application variable

Re: Advice about query caching

2006-11-12 Thread Robertson-Ravo, Neil (RX)
this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Doug Brown To: CF-Talk Sent: Sun Nov 12 13:14:10 2006 Subject: Re: Advice about query caching Cachedwithin does load the dataset into server memory

Re: Advice about query caching

2006-11-12 Thread Doug Brown
cachedwithin? - Original Message - From: Robertson-Ravo, Neil (RX) [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Sunday, November 12, 2006 6:14 AM Subject: Re: Advice about query caching It shouldn't have to be calling into the app scope for every request - only

Re: Advice about query caching

2006-11-12 Thread Paul Boyd
? - Original Message - From: Robertson-Ravo, Neil (RX) [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Sunday, November 12, 2006 6:14 AM Subject: Re: Advice about query caching It shouldn't have to be calling into the app scope for every request - only the intended recipient

Re: Advice about query caching

2006-11-12 Thread James Holmes
Huh? Once it's in the Application scope it can stay there for as long as you want. On 11/12/06, Doug Brown [EMAIL PROTECTED] wrote: Cachedwithin does load the dataset into server memory but stays there until it times out, and then refreshes. Setting it in the application scope requires you to

Re: Advice about query caching

2006-11-12 Thread Robertson-Ravo, Neil (RX)
about query caching Huh? Once it's in the Application scope it can stay there for as long as you want. On 11/12/06, Doug Brown [EMAIL PROTECTED] wrote: Cachedwithin does load the dataset into server memory but stays there until it times out, and then refreshes. Setting it in the application scope

Re: Advice about query caching

2006-11-12 Thread James Holmes
://www.reedexpo.com -Original Message- From: James Holmes To: CF-Talk Sent: Sun Nov 12 13:50:29 2006 Subject: Re: Advice about query caching Huh? Once it's in the Application scope it can stay there for as long as you want. On 11/12/06, Doug Brown [EMAIL PROTECTED] wrote

Re: Advice about query caching

2006-11-12 Thread Robertson-Ravo, Neil (RX)
To: CF-Talk Sent: Sun Nov 12 14:13:51 2006 Subject: Re: Advice about query caching Oh agreed - it's often better use of resources to query the DB rather than to perform elaborate caching when each user needs different results etc. It depends on how big the query is, how much memory is in the server

Re: Advice about query caching

2006-11-12 Thread James Holmes
I'm going to to quote Ben Forta (et al) here: ColdFusion is not a database server If you intend to do frequent, perhaps complex QoQ on the query in memory, you may be better off simply going to the DB. Multiple calls to the DB in a page will reuse the same DB connection and for most purposes CF

Re: Advice about query caching

2006-11-12 Thread Paul Boyd
://www.reedexpo.com -Original Message- From: James Holmes To: CF-Talk Sent: Sun Nov 12 14:13:51 2006 Subject: Re: Advice about query caching Oh agreed - it's often better use of resources to query the DB rather than to perform elaborate caching when each user needs different results etc

RE: Advice about query caching

2006-11-12 Thread Dave Watts
Could you tell me why storing a recordset in an application variable is not recommended. I saw this technique used several times, and prefered over the cachedWithin method. Apparently it's easier to control, to flush the cache, and I guess you could use Cfqueryparam as well. There is

RE: Advice about query caching

2006-11-12 Thread Dave Watts
You should never store database information into a memory variable unless it is within your shopping cart and then I would store it as a array. I'm sorry, but this is simply wrong. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber

RE: Advice about query caching

2006-11-12 Thread Dave Watts
I'm not too sure how to handle caching. So here is my question. Is it appropriate to store the products recordset in an application variable within onApplicationStart, and use QoQ for for data manipulation in my different templates ? Any query that has significant reuse potential as-is,

Re: Advice about query caching

2006-11-12 Thread Jon Clausen
Paul, I think your method would certainly work, however my experience with e-commerce has been that the full recordset of products is almost never used. By using QoQ against your full recordset, you do limit yourself in some of the functions like true full-text searching that the

Large count query caching

2006-03-17 Thread Jeremy Bunton
I have a query counting records in a 25 million plus database. Even with indexing and what not it takes about 25 seconds to run this query. (count * from table where date 19000101) Is there a way I could cache the query so that if it is ran in that same way it very quickly returns the full count.

Re: Large count query caching

2006-03-17 Thread Mingo Hagen
Hi Jeremy, Yes, you can very easily cache queries using the cachedwithin= attribute of cfquery Like so: cfquery datasource=mydata name=myquery cachedwithin=#createTimeSpan( 1, 0, 0, 0 )# SELECT COUNT( * ) FROM myTable WHERE myDate '1900-01-01' /cfquery This will cache your query for

Re: Large count query caching

2006-03-17 Thread Aaron Rouse
The only problem with this is the query can change due to the dynamic building of the where clause. Could do a cached query that selects everything that could be in the where clause then do QoQ on that for dynamic where clause needs. I'd just be a little fearful of how much would need to be

Re: Large count query caching

2006-03-17 Thread John Paul Ashenfelter
On 3/17/06, Jeremy Bunton [EMAIL PROTECTED] wrote: I have a query counting records in a 25 million plus database. Even with indexing and what not it takes about 25 seconds to run this query. (count * from table where date 19000101) Is there a way I could cache the query so that if it is ran

RE: Large count query caching

2006-03-17 Thread Jeremy Bunton
know I can't fit the whole record set in ram. Jeremy -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 9:44 AM To: CF-Talk Subject: Re: Large count query caching The only problem with this is the query can change due to the dynamic building

Re: Large count query caching

2006-03-17 Thread Aaron Rouse
If you were taking the route of a cached query then yes/no that you are wrong. If the count() is going to change based upon the where clause then you would have to have a single master cached query that pulled out everything possibly needed so that you could then do QoQ on that for the dynamic

RE: Large count query caching

2006-03-17 Thread Wolfe, Aaron
To: CF-Talk Subject: Large count query caching I have a query counting records in a 25 million plus database. Even with indexing and what not it takes about 25 seconds to run this query. (count * from table where date 19000101) Is there a way I could cache the query so that if it is ran in that same

RE: Large count query caching

2006-03-17 Thread mark
PROTECTED] Sent: Friday, March 17, 2006 10:08 AM To: CF-Talk Subject: Re: Large count query caching If you were taking the route of a cached query then yes/no that you are wrong. If the count() is going to change based upon the where clause then you would have to have a single master cached query

RE: Large count query caching

2006-03-17 Thread Jeremy Bunton
index seems to go. I need oracle's bitmap indexes I think to do it right. I'm pretty sure my indexes are ok. Jeremy -Original Message- From: mark [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 10:43 AM To: CF-Talk Subject: RE: Large count query caching Is there a finite number

Re: Large count query caching

2006-03-17 Thread Aaron Rouse
:43 AM To: CF-Talk Subject: RE: Large count query caching Is there a finite number of options for a count? Even if the number is 50, you could run the queries late at night and cache the results for 24 hours? It wouldn't take any shorter time, but to the user it would be much better

RE: Large count query caching

2006-03-17 Thread Munson, Jacob
oddly enough the more ands in the where clause the faster the clustered index seems to go. That does seem odd, but that's the way it usually works. The 'ands' are cutting off chunks of data from the whole, and making the search cover smaller areas. Also, if your 'ands' are part of your

RE: Large count query caching

2006-03-17 Thread Mark A Kruger
Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 8:28 AM To: CF-Talk Subject: Large count query caching I have a query counting records in a 25 million plus database. Even with indexing and what not it takes about 25 seconds to run this query. (count * from table

RE: Large count query caching

2006-03-17 Thread Jeremy Bunton
I'll check that out, I am not using them now. Jeremy -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 11:09 AM To: CF-Talk Subject: RE: Large count query caching If you cannot cache on the web server - make sure and bind the data using

Re: Large count query caching

2006-03-17 Thread Mingo Hagen
) FROM myTable With the * it has to return all records and all fields. -Original Message- From: Jeremy Bunton [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 9:28 AM To: CF-Talk Subject: Large count query caching I have a query counting records in a 25 million plus

RE: Large count query caching

2006-03-17 Thread Mark A Kruger
: Friday, March 17, 2006 10:29 AM To: CF-Talk Subject: Re: Large count query caching Hi Aaron, Are you sure about that? I just tried three different queries (count(*), count(field) and count(0)) on two joined tables with a date selection which return a count of about 50 records. all three queries

Re: Large count query caching

2006-03-17 Thread Jochem van Dieten
Wolfe, Aaron wrote: You should use a field name in the count instead of the *. It should speed it up. SELECT COUNT( fieldname ) FROM myTable With the * it has to return all records and all fields. COUNT(fieldname) has a different meaning then COUNT(*). Jochem

Re: Large count query caching

2006-03-17 Thread Jochem van Dieten
Aaron Rouse wrote: What is a bitmap index? The short explanation: Most types of database index contain the value of the indexed field plus a pointer to the rest of the row. So if you are indexing a bigint, that is 8 bytes for the value, another 8 bytes for the pointer and some room for

RE: Large count query caching

2006-03-17 Thread Mark A Kruger
: Large count query caching Aaron Rouse wrote: What is a bitmap index? The short explanation: Most types of database index contain the value of the indexed field plus a pointer to the rest of the row. So if you are indexing a bigint, that is 8 bytes for the value, another 8 bytes for the pointer

JSP Question (Does query caching existing)

2005-01-03 Thread Ciliotta, Mario
Hi, Sorry for asking a JSP question here but I have not been able to find a mailing as good as CFTALK for Java/JSP issues. I am in the process of converting a CF application over to JSP running under WebLogic as practice to see how long it takes to do the same coding vs. using CFMX. In my CF

Re: JSP Question (Does query caching existing)

2005-01-03 Thread Barney Boisvert
You can just stash the recordset in the application scope, much like you would in CF. c:set var=myRecordSet scope=application value=${recordset} / or if you're not using JSTL % application.setAttribute(myRecordSet, recordset) % cheers, barneyb On Mon, 3 Jan 2005 17:43:57 -, Ciliotta,

Re: query caching and cfcs

2004-08-27 Thread Barney Boisvert
named goo.Inside goo I perform a query.Now this cfc goo has an instance stored in the application scope.I want to employ query caching on that query via the cfquery tags cachedwithin attribute. Something tells me this no so good for thread safteyness, eh?Thoughts? Yes, I var scoped the query

Re: query caching and cfcs

2004-08-27 Thread Nando
an instance stored in the application scope.I want to employ query caching on that query via the cfquery tags cachedwithin attribute. Something tells me this no so good for thread safteyness, eh?Thoughts? Yes, I var scoped the query name.Is it the fact that CF uses the name, sql, and dsn to ID

Re: query caching and cfcs

2004-08-27 Thread lists
that's what I figured...danke -- --- Douglas Knudsen http://www.cubicleman.com If you don't like something, change it. If you can't change it, change your attitude. Don't complain. - Maya Angelou [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: query caching and cfcs

2004-08-27 Thread S . Isaac Dealey
this cfc goo has an instance stored in the application scope.I want to employ query caching on that query via the cfquery tags cachedwithin attribute. Something tells me this no so good for thread safteyness, eh?Thoughts? Yes, I var scoped the query name.Is it the fact that CF uses the name

query caching and cfcs

2004-08-26 Thread Douglas Knudsen
Ok, I got a cfc named goo.Inside goo I perform a query.Now this cfc goo has an instance stored in the application scope.I want to employ query caching on that query via the cfquery tags cachedwithin attribute. Something tells me this no so good for thread safteyness, eh?Thoughts? Yes, I var scoped

RE: query caching (was: RE: CFC performance difficulties)

2003-06-29 Thread Dave Watts
Is there any documentation on how to handle cached queries across a load balanced environment? No, not to my knowledge. I've noticed some oddities on ours, and was wondering if we were missing something obvious. Could you be more specific? Are you referring to caching queries using the

Query Caching

2003-01-30 Thread Burcham, Steve
I have a 'Telemarketing' application, don't worry we only call existing customers to update there profile information for the new sales process, that caches a list of the first 50 customers based on the search criteria. This works great for now, but we are adding a second person to make calls at

RE: Query Caching

2003-01-30 Thread Owens, Howard
, 2003 1:03 PM To: CF-Talk Subject: Query Caching I have a 'Telemarketing' application, don't worry we only call existing customers to update there profile information for the new sales process, that caches a list of the first 50 customers based on the search criteria. This works great

Re: Query Caching

2003-01-30 Thread jon hall
No they wont. Query caching takes more than the query name into account. Think of the sql string and the cfquery parameters as a hash that CF uses to look up to see if the query is in it's cache. If the parameters _and_ the string match exactly then the query will be pulled from cache, otherwise

RE: Query Caching

2003-01-30 Thread Burcham, Steve
- Field Support Team RDO Equipment Co. Phone (701) 239-8755 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: jon hall [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 3:58 PM To: CF-Talk Subject: Re: Query Caching No they wont. Query caching takes more than

Next N Navigation and query caching theory question

2003-01-17 Thread Pete Ruckelshaus
it as the user pages through their results. However, that still means that as each page gets loaded, the query still needs to be run. It is my understanding of/experience with query caching that results are cached based on the name of the query, and not the actual guts of the query, so having

Re: Next N Navigation and query caching theory question

2003-01-17 Thread Zac Spitzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 | needs to get run again? Should I do something like append the | CFTOKEN for that user's session to the query name so that it is | unique? Or should I store the query output as an array in a session | variable? store them in a session structure

Re: Next N Navigation and query caching theory question

2003-01-17 Thread Paris Lundis
- From: Pete Ruckelshaus [EMAIL PROTECTED] Date: Fri, 17 Jan 2003 09:02:22 -0500 Subject: Next N Navigation and query caching theory question Hi, I am rebuilding my employer's bug tracking application; quite a job, but it's been fun (seriously, plus I get to be a hero to hundreds of developers who

Re: Next N Navigation and query caching theory question

2003-01-17 Thread Dave Carabetta
It is my understanding of/experience with query caching that results are cached based on the name of the query, and not the actual guts of the query, so having multiple users each with their own dynamic queries but all run under the same query name will mean that only the first cached query

Re: Next N Navigation and query caching theory question

2003-01-17 Thread paul smith
that as each page gets loaded, the query still needs to be run. It is my understanding of/experience with query caching that results are cached based on the name of the query, and not the actual guts of the query, so having multiple users each with their own dynamic queries but all run under the same

Re: Next N Navigation and query caching theory question

2003-01-17 Thread Samuel R. Neff
Instead of querying all the data for the entire list on every page (even with caching), you an often get better results by just querying the primary keys first, and then query the data for the 50 records you're displaying in this page--filter by primary key is very fast. Then pass the complete

Re: Next N Navigation and query caching theory question

2003-01-17 Thread paul smith
Interesting. That's basically what I do at SMARTERyellowpages.com for full-text queries, except I store the list of primary keys in a cached query. For example, using office as a search term in www.SMARTERyellowpages.com I find 1941 Listings that I can page thru 50 at a time. For drill-down

Re: Next N Navigation and query caching theory question

2003-01-17 Thread Samuel R. Neff
I should also point out that when I used the primary key caching technique I was doing a full-text search against a Verity collection to return the primary keys and then using those to get the details out of a database. So in my particular case, I had to do two queries (one against verity, one

Query Caching Question

2003-01-16 Thread Joshua Miller
Ok, I've been reading up on query caching today and I think I've run into something that may cause me problems unless there is a way to dynamically name queries. I have an application that houses data for multiple sites - the data is referenced by a siteID that is set as a session variable. So

RE: Query Caching Question

2003-01-16 Thread Raymond Camden
PROTECTED]] Sent: Thursday, January 16, 2003 12:25 PM To: CF-Talk Subject: Query Caching Question Ok, I've been reading up on query caching today and I think I've run into something that may cause me problems unless there is a way to dynamically name queries. I have an application

RE: Query Caching Question

2003-01-16 Thread Owens, Howard
. -Original Message- From: Joshua Miller [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 10:25 AM To: CF-Talk Subject: Query Caching Question Ok, I've been reading up on query caching today and I think I've run into something that may cause me problems unless there is a way

Re: Query Caching Question

2003-01-16 Thread jon hall
information coming back from the query specific to the user then I don't see a problem... If the query does actually have user specific information, you may be better off just adding a userid field to the query. Caching it isn't a problem then. cfquery datasource=#request.dsn# name=qGetSite SELECT

RE: Query Caching Question

2003-01-16 Thread Jim Davis
Well, you can't dynamically name queries, but remember that query caching requires the EXACT same SQL to be used. So if you do this: cfquery name=qGetSite cachedwithin... SELECT sitename FROM tblSites WHERE siteID=#session.siteID# /cfquery Then you'll cache each query using a different siteid

Re: Query Caching Question

2003-01-16 Thread paul smith
reading up on query caching today and I think I've run into something that may cause me problems unless there is a way to dynamically name queries. I have an application that houses data for multiple sites - the data is referenced by a siteID that is set as a session variable. So for example

Query caching

2002-11-04 Thread Howie Hamlin
I have an application where I would like one or two queries cached during a session. I know that you can use cachedwithin to cache a query globally for an application but I don't think that would be based on session... So, is it possible to cache a query for a session? If so, a small code

RE: Query caching

2002-11-04 Thread Andy Clary
Just store the query in session scope. cfquery name=SESSION.qMyQuery datasource=yadayada -Original Message- From: Howie Hamlin [mailto:howie;coolfusion.com] Sent: Monday, November 04, 2002 2:15 PM To: CF-Talk Subject: Query caching I have an application where I would like one or two

RE: Query caching

2002-11-04 Thread Haggerty, Mike
#session.temp.recordcount#/CFOUTPUT -Original Message- From: Howie Hamlin [mailto:howie;coolfusion.com] Sent: Monday, November 04, 2002 4:15 PM To: CF-Talk Subject: Query caching I have an application where I would like one or two queries cached during a session. I know that you can use

RE: Query caching

2002-11-04 Thread Raymond Camden
;teleplanwireless.com] Sent: Monday, November 04, 2002 4:17 PM To: CF-Talk Subject: RE: Query caching Just store the query in session scope. cfquery name=SESSION.qMyQuery datasource=yadayada -Original Message- From: Howie Hamlin [mailto:howie;coolfusion.com] Sent: Monday, November 04, 2002 2

Re: Query caching

2002-11-04 Thread Howie Hamlin
I had a feeling it was something like that but I wanted to make sure. Thanks, Howie - Original Message - From: Haggerty, Mike [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, November 04, 2002 4:17 PM Subject: RE: Query caching Here's an example on CF 4.5: CFQUERY NAME

Re: Query caching

2002-11-04 Thread Jochem van Dieten
Howie Hamlin wrote: I have an application where I would like one or two queries cached during a session. I know that you can use cachedwithin to cache a query globally for an application but I don't think that would be based on session... cachedwithin is server-wide. So, is it possible

RE: Query caching

2002-11-04 Thread Raymond Camden
-Talk Subject: RE: Query caching Here's an example on CF 4.5: CFQUERY NAME=senate DATASOURCE=resource SELECTlastname, firstname, party, state, website, email FROMsenators WHERE state = 'CFOUTPUT#session.state#/CFOUTPUT' /CFQUERY

Re: Query caching

2002-11-04 Thread Howie Hamlin
] Sent: Monday, November 04, 2002 4:30 PM Subject: Re: Query caching So, is it possible to cache a query for a session? Why would you want to? Caching looks at both the name and the SQL statement. If they are the same, wouldn't the outcome be the same as well? Jochem

Re: Query caching

2002-11-04 Thread Howie Hamlin
I'll make sure our developer uses the locks... Thanks, Howie - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, November 04, 2002 4:33 PM Subject: RE: Query caching This example is missing locking. Sorry if I sound like a broken

RE: Query caching

2002-11-04 Thread Haggerty, Mike
#session.temp.recordcount#/CFOUTPUT Happy now? Hoping I did this right, M -Original Message- From: Raymond Camden [mailto:jedimaster;macromedia.com] Sent: Monday, November 04, 2002 4:33 PM To: CF-Talk Subject: RE: Query caching This example is missing locking. Sorry if I sound like a broken

RE: Query caching

2002-11-04 Thread Raymond Camden
it is. - Yoda -Original Message- From: Haggerty, Mike [mailto:MHaggerty;mbda.gov] Sent: Monday, November 04, 2002 4:43 PM To: CF-Talk Subject: RE: Query caching Thank you for your comments. cfif NOT isdefined(session.temp) cflock name=data_6 throwontimeout=Yes

RE: Query caching

2002-11-04 Thread Haggerty, Mike
*EXPLICATIVE* Thanks M -Original Message- From: Raymond Camden [mailto:jedimaster;macromedia.com] Sent: Monday, November 04, 2002 5:05 PM To: CF-Talk Subject: RE: Query caching Nope - sorry. :) Your isdefined check needs a read lock around it. Quick code that my have typos+pseudo

Question About Query Caching

2002-03-13 Thread Owens, Howard
Let's say I have a query that is cached ... Let's say a user adds a new item to the table called in the query. Now we all know that so long as the query is cached, the new item won't show up in the output. But what if I want it to show up right away? Is there a way to dump the current cache

RE: Question About Query Caching

2002-03-13 Thread Chip Griffin
You can run the query with the cache set to 0 minutes: cachedwithin= #CreateTimeSpan(0,0,0,0)# -Original Message- But what if I want it to show up right away? Is there a way to dump the current cache as soon as a new item is inserted, so that the query is re-cached the next time it is

RE: Question About Query Caching

2002-03-13 Thread John Wilker
-Talk Subject: Question About Query Caching Let's say I have a query that is cached ... Let's say a user adds a new item to the table called in the query. Now we all know that so long as the query is cached, the new item won't show up in the output. But what if I want it to show up right away

RE: Question About Query Caching

2002-03-13 Thread Bud
On 3/13/02, John Wilker penned: My idea would be to put a query with the same name on the page that updates the database. The new query will overwrite the cached one as long as the SQL is different, then the first time some one runs the real query it will re cache that one. You mean as long as

RE: Question About Query Caching

2002-03-13 Thread John Wilker
- From: Bud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 1:27 PM To: CF-Talk Subject: RE: Question About Query Caching On 3/13/02, John Wilker penned: My idea would be to put a query with the same name on the page that updates the database. The new query will overwrite the cached one

RE: Question About Query Caching

2002-03-13 Thread Brian Scandale
- From: Bud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 1:27 PM To: CF-Talk Subject: RE: Question About Query Caching On 3/13/02, John Wilker penned: My idea would be to put a query with the same name on the page that updates the database. The new query will overwrite the cached

RE: Question About Query Caching

2002-03-13 Thread Owens, Howard
Message- From: Brian Scandale [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 2:18 PM To: CF-Talk Subject: RE: Question About Query Caching Now I'm a bit confused... I thought that as long as the query had not expired that cf would return the cashed results... regardless

RE: Question About Query Caching

2002-03-13 Thread Dave Watts
So both the SQL (all statements) and the Query NAME must be IDENTICAL to the cached query? I would rather just run a blank (bare-bones SQL statement that returns just one or zero records) because the actual query returns 8,000 records and takes a few seconds to execute. Yes, both the

Query Caching?

2001-09-15 Thread Andrew Scott
Quick question! When using the cachedwithin parameter of the cfquery, can someone remind me is this cached per client or by application? It has escaped me, if it was cached for everyone or not. Regards, Andrew Scott ~~ Your ad could be here.

Re: Query Caching?

2001-09-15 Thread Jochem van Dieten
Andrew Scott wrote: Quick question! When using the cachedwithin parameter of the cfquery, can someone remind me is this cached per client or by application? It has escaped me, if it was cached for everyone or not. For everyone. Jochem ~~

Re: Query Caching..

2001-08-17 Thread Daniel Larson
=get_content datasource=#request.www_ds# maxrows=1 dbtype=ODBC cachedwithin=#CreateTimeSpan(1,0,0,0)# ... where the timespan arguments are days,hours,minutes,seconds. - Original Message - Just a quick question about query caching (using CACHEDWITHIN attrib) -- Is the cached query tied

RE: Query Caching..

2001-08-17 Thread Darryl Lyons
17, 2001 4:32 PM To: CF-Talk Subject: Re: Query Caching.. The cached query will persist for the template it was run from, and the only way to override it (even if CF gets newer info from the database in an identical query elsewhere) is to use the cfobjectcache tag (5.0 only) like

RE: Query Caching..

2001-08-17 Thread Philip Arnold - ASP
Ahh, so basically caching a query with the same name and application within an application that uses different templates (e.g. dsp_list.cfm and dsp_list2.cfm) but the same query is pointless? NO - a Cached query persists for the same SQL and datasource, it has nothing to do with the template

RE: Stop query caching UPDATE

2001-02-15 Thread Josh R
someone goes through the trouble of tracing the URL's so what? The only variable they'll see is worthless as far as getting any important data. Crap, who cares what variables I'm using? All I'm trying to do is get some help about how to fix this query caching problem, and I'm getting attacked over

RE: Stop query caching UPDATE

2001-02-12 Thread Steve Bernard
o: CF-Talk Subject: Re: Stop query caching UPDATE Josh R wrote: PLEASE READ CAREFULLY (Technical info - Using CF 4.5.2 to query MS Access 97 SR2 database for a text field and date field for unknown number of recordnumbers) OK. I have flushed the query by making a dynamically changing

  1   2   >