
SQL Fundamentals3 min read
N+1 Queries: What the ORM Is Actually Doing
One query for the list, then one more for every item in it. The cost is per statement, which is why the profiler shows a fast database and a slow request.
- #orm
- #query-optimization
- #performance
