[hibernate-dev] Where are the batched fetch statements generated?

Clemens Eisserer linuxhippy at gmail.com
Fri May 4 19:54:54 EDT 2012


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

More information about the hibernate-dev mailing list