× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



From: Joel Cochran

In RPGBeans, the database is read one time and the values are stored in
the ServiceProgram, so no you are not chaining each time.

I'm not going to get into the debate about whether database abstraction is
good or bad (because I don't have time to do it justice today), but for the
sake of disclosure, I am about 80% sure it's unnecessary except in very
limited circumstances. I much more favor the idea of business logic servers
as Aaron suggests.

That being said, I want to be very clear about the dangers of this
particular approach: it means that whenever you want a field, you should
always re-initialize the record, because if you call any other procedure,
that procedure might change the current record.

That is, when getting data, you must have the fetch followed by all field
gets. You cannot separate them unless you are absolutely certain you are
not calling any external procedures, and in today's modern modular design,
you should be calling external procedures for just about everything.

So the idea that the service program is holding a record for you is a
potential point of some serious and VERY difficult to debug errors.

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.