|
The reason to use multiple row fetch versus single row fetch, is
to limit the /number of trips/ between the program and the database.
The smallest ratio for the number of trips to the number of rows
retrieved would typically provide the best performance for the
program, with regard to its database access processing.
For example, an analogy... One could remove separately each box
of canned food from a pallet rather than removing separately each
can of food from within each box on the pallet. Using the latter
method would, except for when there is only one can per box, require
more trips than when using the former method. As the number of cans
per box increases, so too would the impact of the trips as measured
in percentage of the overall work, to complete the task of removing
all of the cans individually from the pallet.
Regards, Chuck
Marc Couture wrote:
And what the reason to fetch multiple records at the same time?--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.