Ask HN: How much logic should I keep at the database vs. app layer? | Hacker News Reader