|
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joe Pluta
Sent: Tuesday, August 21, 2007 11:19 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: MVC Architecture and transactions
Honestly, I understand your point about not half-updating the
database, but it seems to me that almost anything that would
break an update is either a serious hardware problem or a
serious programming error, and either one should cause a hard
halt; that's what they're there for.
One big issue, is that RPG can only maintain one recordlock per file.
What happens if you're updating multiple records in the same file?
Well, I don't hold them, which is part of the reason I don't
like commitment control. But I will allow that the more
complex a transaction, the more there are conceivable
circumstances during which in the middle of posting something
could happen that forces a transaction that previously passed
validation to now fail. And for that specific situation, I
can see using some measure of defensive programming, either
using commitment control or some other similar technique.
This is a VERY specific situation and quite rare, in my mind.
For example, can you point to a specific situation in your
business where this can happen? Can you point to a dozen?
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.