Both tests that you link to don't specify optional=false, which means it will default to optional=true, which means it will be EAGERLY fetched, because the mere possibly of a null value eliminates the possibility of proxying the value. So that EAGER fetching occurs here is expected IMO. Or is the problem that this EAGER fetching is done through N+1 queries rather than a fetch join? |