Quantcast
Channel: Visual COBOL Knowledge Base
Viewing all articles
Browse latest Browse all 214

Increasing performance when sequentially reading an indexed file

$
0
0
Current Revision posted to Visual COBOL Knowledge Base by Angela on 4/19/2013 7:48:41 AM

Problem

A customer has noticed that on a rather large indexed file, the performance seems to suffer when reading sequential through the entire file.

Is there a way to increase the performance of indexed file I-O when doing sequential reads?

Resolution:

They might look into using the extfh.cfg option called NODESIZE.
This controls the size of the index nodes that are used for a file when it is created.

The larger the value, the more keys that can be stored into a single node and this can speed up sequential processing quite a bit.

In a recent test when reading sequentially through an indexed file containing 8 million records, the following timings were achieved by setting the NODESIZE and recreating the file:

NODESIZE     Timing
1024                3 mins 55 secs
4096                3 mins 03 secs
16384              1 mins 59 secs

 

 


Viewing all articles
Browse latest Browse all 214

Trending Articles