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