Hacker News new | ask | show | jobs
by rowanG077 180 days ago
in my experience most backends I have worked on people don't use the facilities of their database. They indeed simply hit the database two or more times. But that doesn't mean it's not possible to do better if you actually put more care in your queries. Most of the time multiple transactions can be eliminated. So I don't agree this is a business requirement complexity problem. It's a "it works so it's good enough" problem, or a "lazy developer" problem depending on how you want to frame it.
1 comments

This (along with n+1) is somewhat encouraged in business applications due to the prevalence of the repository pattern.