Ask HN: Business logic in the database – your thoughts
I realise the question of whether you should store business logic in a database will never yield a definitive answer but I'm still keen to hear your opinions.
What has been your experience with putting business logic in a database? How much business logic did you place in the database and do you think it was a good choice? Thanks
3 comments
[ 3.4 ms ] story [ 14.8 ms ] threadCan you give an example of the business logic you have in mind?
If you have the resources to avoid putting business logic in the database, in a production app context, I'd avoid it if possible. It's just another thing tying you to that database, and if you ever decide to migrate, it's another hurdle preventing you from doing that.