Active Record provides nested eager loading like this:
users = User.includes(:address, friends: [:address, :followers])
I wonder if Mongoid can support this in the future, since for some specific requirements, a single level eager loading is not enough to optimize the query, and it's not easy to redefine models to circumvent this.
- duplicates
-
MONGOID-3871 Nested Eager loading?
- Closed