|
1. Does anyone know of a way to significantly speed up the read (and/or
write) operation?
Read the file sequentially, use OVRDBF to set NBRRCDS(nnnn) and SEQONLY(*YES nnnn). Set nnnn to the maximum number of records that will fit in the maximum fetch size for your version of the OS. Used to be 32K but now I think is 128K.
Even if you MUST process the file in keyed sequence you can get significant speed increase by reorganising it in the desired keyed sequence and then process it sequentially. The speed improvement in the I/O can often outweigh the cost of the reorganise. You will need exclusive access to perform the reorganise.
NBRRCDS controls blocking into main storage. SEQONLY controls blocking in your program.
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.