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



>> It may not be as fast as Chain/Update,   However,  It
>> may get faster than SETLL/READE.

>When I became a System/38 programmer back in
>the mid '80s I was told repeatedly by senior RPG
>folks that a CHAIN was internally identical to a
>SETLL/READE, as long as you're using the same key.
>
>What's the difference?

SETLL/READE implies that you're going to process records in a set, like all
the items on an invoice.  RPG will still read them one at a time like it
always did (aside: blocking can play a huge factor) but SQL is designed
around the idea of processing the entire set at once.

As always, generalisations about performance without specific examples is
nothing more than a philosophical discussion.  Having said that, the major
performance booster that I've seen is a reduction in I/O.  I can reduce the
number of records I read or reduce the number of fields I read.  Either
technique works with RPG and SQL.

Buck Calabro
Commsoft; Albany, NY
Visit the Midrange archives and FAQ at http://www.midrange.com
"For every complex problem, there is a solution that is simple, neat, and
wrong."
 -- HL Mencken


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.