dbTalk Databases Forums  

implementing the rules of business within the database

comp.databases.postgresql comp.databases.postgresql


Discuss implementing the rules of business within the database in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mahdi
 
Posts: n/a

Default implementing the rules of business within the database - 08-14-2008 , 08:50 PM






Guys!

is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?

does implementing the logic within the db violates the MVC principle?

Reply With Quote
  #2  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM






Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #3  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #4  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #5  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #6  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #7  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #8  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
  #9  
Old   
Guido Neitzer
 
Posts: n/a

Default Re: implementing the rules of business within the database - 08-14-2008 , 10:46 PM



Mahdi <ce (AT) mail (DOT) net.sk> wrote:

Quote:
is it better to implement the business logic within the database? i.e.
through functions, triggers, constraints .. etc

or implement the logic within the application?
Depends. If you want to be database independant, implement the logic in
a model layer in the app. If you are sure, you'll always stay with the
database, but can't say so for the application layer, implement as much
as you can in the database.

Quote:
does implementing the logic within the db violates the MVC principle?
Don't think so. As long as you keep everything inside a model / storage
layer, you should be fine.

I have my datamodel with all the integrity constraints and so on in the
database, everything else in a model layer in my application
(WebObjects).

cug


--
http://www.event-s.net


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.