Paul,

I hate to disagree with you but....

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-----Original Message-----
From: Paul Alkema [mailto:paulalkemadesi...@gmail.com] 
Sent: Wednesday, June 30, 2010 4:12 PM
To: cf-talk
Subject: RE: Order By question


I love how almost every question asked on this list will eventually turn
into some kind of debate. It's great. :)

-----Original Message-----
From: =?ISO-8859-1?Q?Claude_Schn=E9egans [mailto:schneeg...@interneti=71?=
=?ISO-8859-1?Q?ue.com=3E?=] 
Sent: Wednesday, June 30, 2010 5:03 PM
To: cf-talk
Subject: Re: Order By question


 >>I respectfully disagree with this approach. Doing it in the db will 
be much
faster.

Not so sure:
If the query has to be ordered by the name, it could use an internal index.
If it has to be sorted by some artificial column, there is no index and 
the query could be much longer.

So IMO this approach may be the best, especially if the two exceptions 
have to be added at the end of the query.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335002
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to