Comment
Comment by nemothekid
Lets say I have a relationship where a User has one Profile.
For a load like this:
Gorm will do something like this:
Where a join would be more desirable (only involves 1 trip to the db):
This also has a huge effect on when your initial queries aren't restricted by ID. Gorm will do huge "id IN (1,2,3,4)" queries - or sometimes if I need to filter on a relation (i.e. get users where profile.foo = bar), I end up doing the join getting that data anyways, then the eager queries loads that data again.