> you could set fetch mode to sub select - this is good when you load multiple > objects and wanna batch load their associations loads to one query but > unfortunately, this can only be done from the mappings and will affect all > queries on the entity
I have this set on some associations. Associations that I usually need to fetch to make search result summaries complete. > Or you could use the multi criteria... but its much less comfortable,. If > you fetch only one entity and need to load all of its association, then i > thinks you should check first how much time is added by a round trip. Retrieving only one item is pretty fast problem is when retrieving lots of different at the same time. Here I would benefit from large result sets retrieved in one roundtrip resulting in less chatty database connections and shorter transaction times. Thanks for the explanation of .Eager and .Join. If these result in the same behavior then why do both exist. Ramon -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
