Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Smart eager loading #172
This PR adds a new feature: Smart Eager Loading.
The idea behind smart eager loading is to track the origin of each bean. If a bean originates from a result set, when a related bean is accessed (through a foreign key), instead of quering only the data related to the bean, we query the data related to all related beans.
This optimisation allows us to jump from N+1 queries to only 2 queries \o/