On Mon, Mar 9, 2009 at 4:44 PM, Claude Schneegans wrote: > >>- if the resultset were never used the query would never be run on > the server; > > Well, if the result set is not used, what is the advantage of having the > query run anyway?
A select isn't necessarily idempotent (if CF were able to determine it was a select in the first place).. > >>- if the resultset were used multiple times the query would be run > multiple times on the server; > > If the result set is too large to fit in memory, it will be rewritten > and reread from disk every time anyway. But if the query isn't deterministic you wouldn't necessarily get the same results each time. > May be some parameter in CFQUERY (ie RECORDS="onTheFly") could be used > to create on the fly queries. It will be up to the programmer to use it > if he expects the query to generate lots of data. I'm not really interested in such a parameter, but if you submit it as a feature request you should consider naming it "usecursor" or something. That explains the way it would work much better. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320290 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

