×
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.
On 8/28/2018 7:03 PM, Charles Wilt wrote:
If you're using Run SQL Scripts you can change to *ALLIO in the JDBC
connection config.
I can confirm that in fact, *ALLIO as an optimisation goal causes the
non-CTE to run as slowly as the CTE does. Good diagnostic, thanks.
The view (my ultimate goal) is used in stored procedures that are called
by various ODBC-centric applications as well as Good Old Fashioned
SQLRPGLE. So changing the JDBC configuration won't help out there.
I tried OPTIMIZE FOR 1 ROWS but the 7.3 TR4 optimizer doesn't use that
hint to optimise the CTE-based UNIONs. What ultimately worked for the
issue was to extract the CTE out into its own VIEW, and SELECT ... FROM
the view.
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.