注意programmers.se和dba.se的受众是不同的,并且会有不同的观点,所以在这个例子中我认为在programmers.se上复制
What are the arguments against or for putting application logic in the database layer?是有效的.
我已经找不到有关dba的讨论了,原来的帖子说明了一切,所以:
Most software developers want to keep
application logic in the application
layer,and it probably feels natural
for us to keep it here. Database
developers seem to want to put
application logic in the database
layer,as triggers and stored
procedures.Personally I would prefer to keep as
much as possible in the application
layer to make it easier to debug and
keep the responsibilities of the
layers separate.What are your thoughts on this,and
what should or should not be ok to
implement in the database layer?
注:我不是那个问题的OP,但保留了最初的措辞.