|
I'm aware of SETOBJACC, however I don't want this entire file inonly two fields. Also, each of our clients has their own version of the
memory,
file, so keeping it in memory doesn't seem like a viable optionregardless.
of the record.
I do need to retrieve a value, so I can't simply check for the
existence
once. These are all batch jobs, and at most there would be 33k records
I am aware of a potential performance hit of loading the array all at
(I'd define the array to be 50k to allow for growth), which is going toload in seconds - so from a batch perspective, extra seconds once is ok.
mentioned this and I took it the wrong way, yet lead me to the same
However this discussion has given me the idea (or maybe someone
actually
conclusion) that I could check the array. If the customer isn't there,then go to the file and get the value I need plus add the customer/value
to the array. So in the case of having 33k customers, maybe my job ofrunning 30 million records only uses 15k of those customers, then I've
made the array smaller so the lookups would be quicker.to further enhance data structure array capability.
This is all nice, however I think I need to enter a RFE for the RPG
team
occurs. Like - when is it better to use a User Index than an array? I'm
In regard to User Indexes, I'm not sure where at the point of trade-off
sure there's presentations on that out there (and likely even onconference CDs we have).
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.