There should be a method on GridDialect which allows to fetch several entities with one database round-trip:
ClosableIterator<Tuple> getTuples(List<EntityKey> keys, TupleContext tupleContext);
If supported by a specific store and configured by the user via @BatchSize, this will allow to load all/several members of an association with one database access.
|