3 ms·
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 th
by rowanG077 10mo 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.
- formerly_proven 10mo agoThis (along with n+1) is somewhat encouraged in business applications due to the prevalence of the repository pattern.