Lazy vs. Non-Lazy (eager) Relationships in Hibernate
We are using a Richfaces tree (see http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf) which allows "drilling down", editing, etc of entities in the system (using events and observers) which are supposed to be reflected back immediately in the tree.
The back end is using seam and Hibernate with most of the relationships using eager fetch strategy.
We are facing slow response times on the browser while building the tree (of course this is related to the slow response of the back end) since we are loading each entity and all its associated objects on each mouse click (see http://www.basilv.com/psd/blog/2008/avoid-non-lazy-relationships-in-hibernate)
Has anyone faced the same scenario/problem?
did moving to lazy load strategy resolved the issue?
does any one have a good working example of loading partial tree branches as a response to events?