News for hackers. Stuff that matters.
Re:Understanding N + 1 queries problem by dakiol on Monday January 02, 2023 @03:59PM (#34223556)
How is the example given in the post an "edge" case? All except the simplest domain models include these kind of relationships (and more complex ones). The Post->Comment->Vote pattern is practically everywhere as soon as you are modeling real-world scenarios.
Re:Understanding N + 1 queries problem by isbvhodnvemrwvn on Tuesday January 03, 2023 @05:20AM (#34229841)
Solving those issues takes you SIGNIFICANTLY less time than mapping SQL results in any moderately complex relation graph.