-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONGOID-4173 Fix nested eager loading
- Loading branch information
Showing
2 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7cca240
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nested Includes is not working π¨
Looks like even using the nested includes approach, the N+1 Query Problem is still happening!
Hello @estolfo .
I tried to use the nested includes included in this commit, requested by this feature request but looks like it is not really avoiding the N+1 Query Problem for nested associations.
Scenario π
Steps to Reproduce πΆ ...
β€· Result: Still fetches N sheets.
Conclusion π¬
Looks we are still having N+1 Query Problem for nested associations, even after using the nested includes approach implemented on this changelog.
Could you check why it is not working at all?
Thanks!
Versions π
7cca240
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Victorcorcos You should open an issue.
7cca240
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dblock !
The issue is opened and already fixed by mongoid maintainers!
β https://jira.mongodb.org/browse/MONGOID-5473