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



the programm runs quick enough. there are no performance problems. it's
more the second part of your last sentence: to do it right.

and to learn more about userspace would also be nice. but i think you're
right. i'll take a look at the archives.

thanx.

mk

-----Original Message-----
From: Richard B Baird [mailto:rbaird@esourceconsulting.com] 
Sent: Tuesday, January 21, 2003 2:33 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: user space



Mihael,

there are other rpg lists, but this is the only one i use.

as far as using a user space for your table file, that seems to me to be
a bit of overkill, unless your goal is to learn more about userspaces.
A better option might be loading the file into an RPG table.

there was a large thread on this list a month or so ago that talked
about what to do in this situation.  If i remember correctly, the
concensus was that chaining to a 30 record file many multiple times, you
would gain little by loading the file into a table.

It was something about the as/400 single level store - after the 1st
(pick a number) chains to your table file, the database optimizer would
recognize that this was a file that is going to be used a lot, and would
leave it in resident memory for easy access.

15000 records is not a large number of records to process, and 15000/10
chains is also not a huge number for chains.   this program should run
fairly quickly (easily under a minute?) on a right-sized iseries.  even
faster if run in batch.

are you having performance problems with this program?  or are you just
writing it and want to do it right the first time?

hth,

rick

-------original message-------
hi rpg400 list,

i'm quite new and inexperienced to rpg (especially rpg iv) so sorry for
the newbie questions.

my first question: is this list only for rpg400 or also for rpg iv
(previously named ile rpg) ?

i got the following situation:
my programm accesses to tables. one table is read from top to bottom,
every record, and has about 15000 records. the second table is accessed
about every 10th record and has only 30 records.

now my second question: would it be better to read the necessary data
from the second table into a userspace object? if so, how do i store and
access it from the userspace object. or are there any other way to have
less database access/workload. it seems to me that it would be faster to
first store the data in some temporary memory. though i could be wrong,
cause that would be the way i would do it on a PC and i know that it's a
big difference.

i'm thankfull for every suggestion.

thanx in advance.

mk

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@midrange.com To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l
or email: RPG400-L-request@midrange.com
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 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 copyright@midrange.com.

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.