Which of these are more efficient in a CFQUERY?
Select max(threadid)
OR
select top 1 threadid
....
order by threadid desc
In the first there's an aggregate function which might take more time/processor
while in the second there is an order by. Anyone have an informed answer?
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Studio MX from House of Fusion, a Macromedia Authorized Affiliate and
support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=50
Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2405
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54