Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 11 to 14 of 14 total |
Very slow table match query - any tips to make faster? |
Thu, Mar 22 2007 1:13 PM | Permanent Link |
"Jose Eduardo Helminsky" | Kerry
I am sorry, reading it fast gave me wrong understanding. Eduardo |
Thu, Mar 22 2007 1:15 PM | Permanent Link |
"Jose Eduardo Helminsky" | Kerry
Have you tried NOJOINOPTIMIZE ? Eduardo |
Thu, Mar 22 2007 5:28 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 PM | Permanent 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 Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |