True enough but again...if your queries are complex they should really be in
Stored Procedures and the QEP should be modified as in certain RDBMS' the EP
is not optimum - it's a rough 'guess' and can be significantly improved by
user intervention.

Using an SP over a CFQUERY should IMHO be paramount (of course, only if your
RDBMS allows them!)




-----Original Message-----
From: Alistair Davidson [mailto:[EMAIL PROTECTED] 
Sent: 06 August 2004 10:56
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Exceptions

> 2] It makes the query run faster because the datatype is explicitly
set.

The speed increase that you *can* get from CFQUERYPARAM is more due to
the fact that it allows your DB engine to cache the query's execution
plan, as it will recognize that the same query with different parameters
is just that.

Without CFQUERYPARAM, it may (depending on the engine) have to recompile
the query every time it executes. This difference is not much of a
problem on simple queries, but it becomes more noticeable the more
complex your query becomes (multiple joins, CASE statements, etc)

Alistair Davidson
Senior Technical Developer
Headshift.com
------------------------------------------
HEADSHIFT >>  www.headshift.com
T: 020 7357 7358  
------------------------------------------
smarter  >  simpler  >  social  >



-- 
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]
This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to