note 77088 added to security.database
| From: | x12code at yahoo dot com | Date: | Tue, 14 Aug 2007 16:48:21 +0000 |
| Subject: | note 77088 added to security.database | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129480@lists.php.net to get a copy of this message | ||
About offloading business logic to views and queries facilitated by the database engine, I seek to
avoid this as much as possible, and only do so when such would drastically improve efficiency and
user response time.
For instance, where I am there is database staff and application staff. Trying to do analysis on
existent applications can easily become a snipe hunt.
The database should be kept discreet as much as possible from the application, such that any
database or database provider can easily be substituted with a minimum of cognitive effort on the
part of the one setting up a new database. If functionality has been offloaded to the database,
additional testing is required to make sure triggers and views were done correctly, again, and that
they work right.
Also, keeping all business logic with the application allows all functionality and documentation to
be readable in one place, which is invaluable when doing subsequent analysis on an existing
application. The worst thing is to have functionality scattered here and there.
Keeping everything with the application means one group of people is responsible, as in my case,
application staff. Fewer requests go back and forth. Remember, anytime someone else is brought into
the picture, such as asking a DBA to create a view or trigger for you, that DBA must take
responsibility over his or her work, with whatever requirements, causing more bureaucracy and
administrative complexity.
----
Server IP: 208.69.120.35
Probable Submitter: 163.191.134.154
----
Manual Page -- http://www.php.net/manual/en/security.database.php
Edit -- https://master.php.net/note/edit/77088
Del: integrated -- https://master.php.net/note/delete/77088/integrated
Del: useless -- https://master.php.net/note/delete/77088/useless
Del: bad code -- https://master.php.net/note/delete/77088/bad+code
Del: spam -- https://master.php.net/note/delete/77088/spam
Del: non-english -- https://master.php.net/note/delete/77088/non-english
Del: in docs -- https://master.php.net/note/delete/77088/in+docs
Del: other reasons-- https://master.php.net/note/delete/77088
Reject -- https://master.php.net/note/reject/77088
Search -- https://master.php.net/manage/user-notes.php