load « Batch « JPA Q&A





1. Hibernate Batch Fetching to Lazy Loading    stackoverflow.com

Currently, I observe in hbernate3, the following behavior. if I have @BatchSize(size=5) set, then hibernate will fetch 5 subsets of the mapped type in one SQL query. If I have ...

2. Batch-loading HOWTO    forum.hibernate.org

Newbie Joined: Sat Oct 04, 2003 8:26 am Posts: 10 Imagine a scenario like: Query is executed but some entities that are part of the resultset are not cached in the second-level cache; the query itself is cached with: query.setCacheable(true); What Hibernate will do in this case? As the query is already cached, it will just try to load the needed ...

3. Batch loading from a list of identifiers?    forum.hibernate.org

I have a list of identifiers (thousands of items) and I need to load associated objects. Currently I just iterate through the list of identifiers and call session.load() or session.get() for each. A decent number of the objects are caught by the second-level cache, but that still means I'm generating a ridiculous number of selects to populate my list. Is there ...