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

Like most things, it depends.

Having application logic in the db is harder to debug and test (and possibly scale, but that also depends). But as you mention, it can be much faster if the logic is working on a lot of records.

Also, IME, the data store often far outlives the original application. Having the logic tightly coupled to the data model means future applications are less like to break the assumptions made in the original data model.



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

Search: