|
The optimizer is smarter than I thought. He seems to use all these indexes as needed so
SELECT ucword FROM ucwrdlstpf WHERE ucword LIKE 'Q__AS%'
gives a result in around three seconds. :-O This is *a lot* less than before, with some dozen seconds before. (Three seconds might seem much, but remember, we're talking about a 150 here.)
Index:
CREATE INDEX QTEMP/MASTER01 ON CUSTMAST (substring(NAME,1,1))
CREATE INDEX QTEMP/MASTER02 ON CUSTMAST (substring(NAME,2,1))
...and so on, 18 more times.
I did that with DDS (SST statement) according to a private message. I didn't know that partial indexes were possible at all.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.