Hi, Because of the lack of feedback, I decided to start hacking blindly ;)
Generating the Loaders on demand broke for an unknown reason, so what I do now is to pad the batch-load request with non-existant primary keys up to the next larger batch-size and distribute the batch-sizes a bit more uniform. Works great so far - for my use-cases I almost always get only one query - so I get almost the same amount of roundtrips as with SUBSELECT fetching, only with a lot less complex queries. If there is some interest, I would be happy to share the patches. (although its quite hackish, not ready for general consumption) Thanks, Clemens _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev