|
Let me start by saying I'm not trying to argue for or against SQL (there are others who do this better than I), but am relating "real world" experience in using SQL versus native IO for AS/400 database access.
I don't really have a question about this, just observations. But I was wondering why the query optimizer didn't see or do the second SQL with the temp table. Are there any other SQL things I could do (without creating views, etc) to improve this query? 15 minutes is good, and this will be an "occasional" report, but for other live lookup type inquiries, 15 minutes is too long. Two minutes is too long, but a couple of seconds would be OK to populate a page-at-a-time subfile (or browser window). I'm also wondering whether the query optimizer can take "shortcuts" through the data like I did in the RPG (once I processed satisfied the DBDMREP criteria, I don't need to read the rest of the records for the same item).
Loyd
-- Loyd Goodbar Programmer/analyst BorgWarner Incorporated ETS/Water Valley 662-473-5713 lgoodbar@xxxxxxxxxxxxxx
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.