Jo Siffert <jo.siffert (AT) gmx (DOT) net> wrote:
Quote:
are there any drawbacks or is it bad design to create stored
procedures for all required data access-scenarios to hide the table
structure, queries etc. (and changes that may be made to them) from
the application? |
It can arguably be anti-relational, depending on how the stored
procedures are designed.
To be sure, it diminishes the flexibility of "use cases" for the
system in that (assuming system users are required to use the
procedures) it forces certain access paths.
The flip side is that this allows there to be two sets of developers:
1. Database developers, who are responsible for providing useful
sets of stored procedures, and
2. Application developers, who use what the DB guys provide.
And the separation can allow the DB guys to change the structure of
handling of things in the DBMS without the applications guys having to
worry about it.
Furthermore, it is common for "application developers" to not really
understand relational databases very well. They are likely happier
with a decent API; that means that it is the "DB guys," who are deeply
engaged in DB work, who have to understand the "relationalness" of the
system. That may well be a good way to separate that out...
--
output = ("cbbrowne" "@" "cbbrowne.com")
http://www.ntlug.org/~cbbrowne/rdbms.html
Developmental Psychology
"Schoolyard behavior resembles adult primate behavior because "Ontogeny
Recapitulates Phylogeny" doesn't stop at birth."
-- Mark Miller