4 ms·
I'm not talking about trivial applications. PK lookups are easy no matter what you use. I'm talking about non-trivial applications. > > And they're always la
by benwilber0 2y ago
I'm not talking about trivial applications. PK lookups are easy no matter what you use. I'm talking about non-trivial applications.
> > And they're always lazy, so you never really know when the N+1s are going to happen.
> There are tools to detect this. Please use them regardless. Even if you're writing queries but hand, enough functions on the stack can hide an N+1
I don't want to have to use a tool to "detect" anything. I want my queries to return exactly what they're expected to return, or my code will fail. No surprises.
- mobiuscog 2y agoI think the purpose of the tool is to detect the unexpected number of additional queries, not what is returned.