2 ms·
> It is a really, really bad idea to put business logic in your database and there are people in this thread downvoting everyone who points it out Your databas
by midev 5y ago
> It is a really, really bad idea to put business logic in your database and there are people in this thread downvoting everyone who points it out
Your database is your business logic. From constraints to the queries you write, it's all business logic.
Regardless, you misunderstood the article. This is about moving formatting into the db layer. Letting Postgres return JSON, as opposed to middleware code to translate rows to JSON.
Which is like the opposite of business logic code.