News for hackers. Stuff that matters.
Re:Net 9.0 LINQ Performance Improvements by Pxtl on Friday October 18, 2024 @05:14PM (#41883541)
Quick word of advice when dealing with deep parent/child reloationships:

Do not use lazy loading feature. That way lies madness.

Re:Net 9.0 LINQ Performance Improvements by magicalhippo on Friday October 18, 2024 @05:54PM (#41883854)
We're not doing that where we come from. All child tables have the main id so we can load the data for all child rows with just one query per child table, and we load everything at once.

We were planning on sticking with this, it has worked well so far, but good to know to avoid getting tempted by the alternative.