|
Is it more efficient to code a monitor than to do a chain/if found? I've
never run a test, nor had I thought to until now.
essentially... the record would need to be added within the amount of time
that it takes to do an "if %found" check... If your machine is issuing
updates and writes in such a tight process then you would be better off
using commitment control instead of the wild west maverick database i/o
most of us IBM i programmers are used to.
Which, could be mitigated just
by adding the error check inside the "if %found" like so...
chain;
if %found;
update;
on-error;
<uh oh...that was a crazy fast hijack>
else;
write;
endif;
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.