|
Aaron,
<Rob>I am most interested in what gives me the best bang for the long term.
My take...
Triggers obviously will catch anything and everything. This can be a good
thing depending on whether you have issues with many apps all doing
INSERT/UPDATE/DELETE actions against the same table. It also has the more
complicated infrastructure (two languages, two environments (PASE/ILE),
more complicated debugging, more complicated deployment, etc). If you have
A LOT of applications inserting/updating that you don't have control over
then this can be a good approach and worth the pain. If you do NOT have a
lot of apps inserting/updating then this approach is overkill (IMO) and can
instead be organized in your PHP code.
Even 10yrs down the road you can make it so rows are only inserted via a
REST call to PHP. If you have apps that are doing so much inserting that
they need crazy performance and the REST PHP is too slow then you need to
ask yourself why that other application isn't written in PHP (assuming it
is in-house).
I guess at the end of the day I am just not sold on the "RPG in the DB"
approach because it slows things down so much (aka missed deadlines).
Aaron Bartell
litmis.com - Services for open source on IBM i
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.