|
Another thought - less effort then Visual Explain - put your job in debug - just run the STRDBG command and be sure you say to update production files, if needed. Our STRDBG defaults to UPDPROD(*NO).
The run your SELECT or your program - the job log will have messages about which indexes were considered and why some were not used.
Hope this gives you a direction to go - these tools will save your backside!
I mentioned Visual Explain - that's the best, for lots of reasons - c'mon back if you want to hear more - many here know how to use it well.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.