Hi Tim,

I don't know if MySQL does this, but if it's got the equivalent of
"Profiler" as in SQL server 2000, then you could check that to see if
the SQL is altered before it executes. It sounds like you're right
though.

Cheers,
Douglas

-----Original Message-----
From: Tim Blair [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2003 09:40
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] <cfquery maxrows="x"> question

Morning...

With the maxrows="x" argument of cfquery, does the number of retruned
rows get limited when the query goes ahead (e.g. for MySQL a LIMIT x is
stuck on the end of the exectured statement) or does the whole query run
and then CF truncates the query length?

Just wondering cos we're supporting some code from someone else (grumble
grumble) and they've got a table with about 40,000 records in it and are
selecting 50 at a time using maxrows="50" -- the query seems to be
taking a long time so I'm guessing every time it's called all 40,000
records are being returned...

Cheers,

Tim.


-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]




--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to