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



> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx
> [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Tony Carolla
> Sent: Tuesday, March 29, 2005 2:03 PM
> To: RPG programming on the AS400 / iSeries
> Subject: Re: Arrays
> 
> 
<snip>
> 
> I have spent alot of time studying indexing, on DB2 and SQL server as
> well.  It is fascinating, but I just find it easier to analyze the
> data request I am building, and make my own 'access plan', write the
> code to do it, and it's done.  I would bet that any quick-running SQL
> statement can be made to run just as fast or even faster using RPG.
> 
> 
> 

Ah, no in general you couldn't....as long as you were dealing with sets of 100+ 
records at a time.

Simple really, the same access plans, ie. logical files or indexes, you would 
need for fast access can be used by SQL.  SQL is optimized for set at a time 
processing whereas RPG is optimized for record at a time.  It boils down to how 
many trips need to be made between the DB and the application code.  In RPG, 
there's 1 for every record.  With SQL, there's only 1.


HTH,

Charles Wilt
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
 



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.