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



One thing to do when you put back the logicals is check the keys. Put
the longest keys on first down to the shortest so that the AS/400 will
share any access paths.

For example, if you have a logical with

Cust#,ShipTo,Item#

And other

Cust#, Shipto

The As/400 will only create one access path.

This will only work if all the access paths are the same type. *MAX1TB
or *MAX1GB.

Also, IBM recommends that you create Access Paths as SQL indexes first
then create the logicals. SQL indexes are much more efficient.

When you are done, you can keep the SQL indexes or delete them. The
logicals will maintain the SQL indexes.

If you are doing this work anyway, might be something to look at.

I did this on a few files at a company I was consulting at. Ended up
saving like 100gb of storage just on the indexes because they were huge
and reduced number of indexes down by 10 or 20.

Surprising thing to me is that IBM does not have a command that does all
of the automatically.

You, also, indicated that you did not have the source. Programmers can
do unbelievably stupid things like reading the whole file in as update
to update a few records or reading files they don't need to. Without
seeing the source, pretty hard to know what people are doing.

I worked on a package where they had a multi-format logical over order
lines and two types of comments with a million comments. All the
programmers where reading the multiple format logical in update to
update a few hundred order lines so they were reading a million comments
they had no interest in and this was through the whole system. Geez.


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.