Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have encountered the problems described for MySQL with Oracle and DB2 databases. If you implement the business rules as transactions within stored procedures, then the logical constraints can be maintained programmatically by the StoredProcs.


As long as the constraints are maintained within the DB correctly, it's cool. Some constraints are more complicated than FK constraints allow. Implementing as close to the DB as possible is a good idea.

To do it in app code would be a terrible idea because it throws FK referential (and data) integrity out the window.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: