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



I have a few programs that are retrieving data from files with
approximately 5 to 750 million records.

The program is executing in approximately 15 seconds which in itself is not
bad. However, I would like to improve the performance by processing less
records.

A logical file may provide better performance but I would not like to use a
logical. I have a simple SELECT with JOIN retrieving the data.

I am considering using a VIEW but am wondering if a VIEW would provide
better performance from the point of view that a logical builds a permanent
index filtering the records required.

I have run PRTSQLINF and the programs are using existing logicals and is
not making any suggestions.

My question is, does a VIEW create a similar retrieval in that it will only
read the records in the filter or does it do the filtering at the time the
SELECT is executed hence possibly reading all 750 million records therefor
not gaining anything?

TIA
Darryl Freinkel

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.