|
-snip- >For the problem of building access path dynamically >which takes long time, for that I am trying to >replace LF over OPNQRYF. -snip- >Mr. David Duerr has suggested a solution by using >SQL VIEW. I am going to try that today. Perhaps if you build appropriate logicals over your PF's you can cut down on the time to process the OPNQRYF. As David suggested, if OPNQRYF can find an access path to help optimise the query, it will use it. The logicals do not need to be JOINs in order to speed things up, but they should be over your fields that you use in your selection and kfld parameters. This topic is a difficult one to deal with because there are very many variables that make each situation unique. For some pointers on optimising query/SQL/ OPNQRYF (which all use the same engine, I believe) see the IBM manual DB2 for AS400 SQL Programming. For V4R3, chapter 22 contains information on the query optimiser and how to improve performance. Buck Calabro CommSoft, Albany, NY mailto:mcalabro@commsoft.net +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.