How to avoid N+1 problem when loading more results in blade?
I'm building a website that has submissions, and these submissions have comments. These comments are structured a lot like how reddit's are.
These comments have a lot of relationships (has the auth user saved/upvoted/downvoted the comment, does the comment have children, who created the comment).
So to avoid a bunch of unnecessary server queries, I eager load these relationships.