Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 14 of 14 total
Thread Very slow table match query - any tips to make faster?
Thu, Mar 22 2007 1:13 PMPermanent Link

"Jose Eduardo Helminsky"
Kerry

I am sorry, reading it fast gave me wrong understanding.

Eduardo

Thu, Mar 22 2007 1:15 PMPermanent Link

"Jose Eduardo Helminsky"
Kerry

Have you tried NOJOINOPTIMIZE ?

Eduardo

Thu, Mar 22 2007 5:28 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Kerry,

<< No problems - here is is >>

The join is un-optimized due to the fact that you've created
case-insensitive indexes on the join columns, but are asking for a
case-sensitive join.

Use this instead:

SELECT
 box.BoxNumber,
 box.ID
FROM
 box
 LEFT OUTER JOIN Import_OffsiteBoxes ON (UPPER(box.BoxNumber) =
UPPER(Import_OffsiteBoxes.Box_Nr))
WHERE
(Import_OffsiteBoxes.Box_Nr is NULL)
ORDER BY
 box.BoxNumber ASC

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Mar 22 2007 6:12 PMPermanent Link

Kerry Neighbour
Hello Tim Young [Elevate Software],

> The join is un-optimized due to the fact that you've created
> case-insensitive indexes on the join columns, but are asking for a
> case-sensitive join.

Jeez! What a difference! It worked like a charm. The query went from 22 seconds
to 0.288 seconds!

Many thnaks....the boss will think I am brilliant!

« Previous PagePage 2 of 2
Jump to Page:  1 2
Image