We have never added implicit joins to HQL/criteria queries for EAGER associations, since for to-many associations that would change the semantics of the query.
But, we _could_ in principle do it _only_ for to-one associations. That would in principle make your program faster with little real downside.
See: [https://twitter.com/1ovthafew/status/1660238087325114368|https://twitter.com/1ovthafew/status/1660238087325114368|smart-link]
Now, we definitely wouldn’t want to make a change like that _by default_, since in rare cases it could break programs. And besides, I guess we want to experiment with it first; it’s a pretty big change.
But we could add a setting to let people opt in.
WDYT? |
|