| [news.eclipse.technology.ejb-orm] Re: JDO fetch-groups important for RCP, EJB3 doesn't have comparable concept |
Joerg von Frantzius wrote:
Maybe that's a misunderstanding, as JDO fetch-groups can be used both for eager-fetching /and /lazy-loading. While in EJB3 you would use a JOIN query on the association fields to be eager-fetched, in JDO2 you would just put them in a fetch-group. That puts control over fetching into a single conceptual place, so that you can easily distinguish fetch-behaviour for different use-cases in the metadata. It doesn't disperse that information on metadata, code and queries as in EJB3 currently.
when there is a large number of columns in a table mapped to one object or when there is a single attribute that is very large (e.g. a LOB). All other cases will normally end up causing worse performance, not better.
Maybe that conclusion is due to the same possible misunderstanding that fetch groups would only declare lazy loading.
because they are prone to misuse and a complication that we did not feel was warranted in the specification.
What misuse could that be? What complication do they add other than for the ORM implementation?
Regards, -Mike