logoalt Hacker News

overflowyyesterday at 11:48 PM2 repliesview on HN

Moving business logic into database functions is the shortest path to insanity.


Replies

jamesfinlaysontoday at 5:09 AM

I remember an old colleague telling me at a previous job they'd moved all business logic into triggers and stored procedures because their database was on their most powerful server. And then one day it wasn't and the database started to choke horrifically.

christophilusyesterday at 11:58 PM

I agree with that. You can use Postgres as a message queue / task manager backing store without a database function, though, and it works quite well at the small scale that most sites / SaaS products operate at.