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



At 07:38 11/25/2004, Antonio Fernandez wrote:
    "Select * from myFileLxx where Field1 = xxx and Field2 = yyy"
or same kind of search with a Query/400

will always use the Physical file (sequential file) even though there are some different (several...) logical files (LFs) that have fields Field1 and Field2 as the first keys! (plus other different fields in each case).

When run in debug, you should see a message with text that says "Access path suggestion" or something similar. The 2nd level text on that message will show you the keys which the query wants to use. I have had problems with queries not using existing indexes if either the key fields are derived for some reason (not really in the physical table) or if the access path contains selection or exclusion logic.



Pete Hall
http://www.pbhall.us



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.