From c9b3995eef59bb5a64dc5be32f6e69aec5baf5d0 Mon Sep 17 00:00:00 2001 From: Justin Carter Date: Tue, 2 Feb 2016 17:07:39 +1100 Subject: [PATCH] FC-3060 improve farFU getDefaultFUObject() performance --- packages/types/farFU.cfc | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/packages/types/farFU.cfc b/packages/types/farFU.cfc index 5d8716b72..dda5e8751 100644 --- a/packages/types/farFU.cfc +++ b/packages/types/farFU.cfc @@ -185,41 +185,38 @@ - + - + - + - SELECT f.objectid as objectid, r.typename as typename - FROM farFU f - INNER JOIN - refObjects r - on f.refobjectid = r.objectid - WHERE f.refobjectid = - AND f.fuStatus > 0 - ORDER BY f.bDefault DESC, f.fuStatus DESC + SELECT objectid + FROM farFU + WHERE refObjectID = + AND fuStatus > 0 + ORDER BY bDefault DESC, fuStatus DESC - - - + + + - + - + - +