× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



+1 and more on using ACS!

Vern

On 2/8/2023 6:03 PM, Jon Paris wrote:
You may in part have answered your own question if you got this information from the debugger and not ACS. The debugger "advice" has not been updated in eons and the SQL engine has come a long way. IBM has been warning for years not to use it.

If you did use the debug info I suggest you use the ACS index advisor instead.


Jon P.

On Feb 8, 2023, at 6:52 PM, James H. H. Lampert via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

I just put the debugger on an SQL query, and got a couple of indexing recommendations that appear downright nonsensical:

Of course, as usual, "the names have been changed to protect the innocent."

Both of them on file FOOBAR

First suggestion, index FOOBAR on FOO, CORGE. (FOOBAR is already uniquely keyed on FOO.)

Second suggestion, index FOOBAR on BAR, CORGE. (This makes a tiny bit more sense, but only a tiny bit: there's no uniqueness constraint on BAR, but there's already a logical non-uniquely keyed on BAR and BAZ, and also one on BAZ and BAR, and there are only a few values of BAR appearing in more than one record, only one with as many as 6, and none with more than that.)

Any idea why we'd get such nonsensical suggestions?

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.