|
----- Message from Vinay Gavankar <vinaygav@xxxxxxxxx> on Fri, 21<rpg400-l@xxxxxxxxxxxx>
Apr 2017 17:42:56 -0400 -----
To:
"RPG programming on the IBM i (AS/400 and iSeries)"
file
Subject:
Accessing Database vs Dataarea
Hi,
We have a program where same record of a 'control' file (input mode) is
being read for every iteration, and I thought that replacing the 'Chain'
with reading a dataarea.
So I ran a simple test to compare the time taken to read one record in
100,000 times and reading a data area 100,000 times with 'IN' statement.took
I was surprised that the file was read under 1 sec, whereas dataarea
around 4-5 seconds.with
Just to make sure, I looped for a million times. The file came in at 4
seconds and dataarea at 47 seconds.
I was wondering whether I am missing something or accessing a dataarea
an 'IN' statement takes that long compared to file read.
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.