News for hackers. Stuff that matters.
Re:Understanding N + 1 queries problem by pharmakom on Tuesday January 03, 2023 @03:03AM (#34229032)
This comes up in GraphQL, not just ORMs. A beautify solution is Facebook’s Haxl. Less beautiful is data-loader.
Re:Understanding N + 1 queries problem by eezing on Tuesday January 03, 2023 @10:40AM (#34232823)
Correct. While data-loader facilitates data loading, type resolvers in GraphQL is where the solution starts.