× 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.


  • Subject: Re: ODP / SQL Question.
  • From: DAsmussen@xxxxxxx
  • Date: Tue, 30 Jan 2001 00:22:07 EST

Tim,

In a message dated 1/29/01 5:41:06 PM Eastern Standard Time,
thatzenbeler@clinitech.net writes:

<<snip>>
So I looked at it, and it happens to be a RPGSQL function, and it does a lot
of interactive indexing.  So my questions is this.  Can I created a logical
file similar to this SQL, and index it the same.  So when this sql is
activated it would be smart enough to use an already created index instead
of creating one from scratch on the fly?  And if so, is there anything
special I need to do to attach the logical to the job?



You _CAN_ create a logical similar to the SQL statement in question and it
_MAY_ improve performance.  You actually have two better options, though:

First, run the program under STRDBG.  Debug throws many entries into the
joblog that provide additional information about access path creation.  View
the messages with F1 to provide full information.

Second, use the STRDBMON command against a job running the program to an
outfile with *DETAIL.  Then query the outfile looking for anything with the
"Index advised" (QQIDXA?) flag set to "Y" and create those indexes.  You may
need to do a "follow up" DBMON if performance is still slow, as the optimizer
isn't always accurate and creating advised indexes sometimes points out the
_REAL_ index you need.

HTH,

Dean Asmussen
Enterprise Systems Consulting, Inc.
Fuquay-Varina, NC  USA
E-mail:  DAsmussen@aol.com

Error Message -- "Enter any 11 digit prime number to continue." -- Anonymous


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.