Retrieve « Batch « JPA Q&A





1. How to Retrieve a batch insert result    forum.hibernate.org

Hello. I'm performing a lot of insert and as the reference documentation explain for this case I have set the jdbc.batch_size to X and I flush and clear the session each X insert. The problem is, when I flush the session how could I get the batch result? (the array of int that you get when you use the executeBatch method ...

2. Batch fetching: how to retrieve objects with collections    forum.hibernate.org

Hi, I'm trying to fetch a list of objects where each root object has its own collections. Since there will be hundreds of thousands of instances I'd need to read them iterating over each one by one or with some kind of pagination. So far, I've been unable to do this. The problem is that ScrollableResults seems to read rows, not ...