long « Batch « JPA Q&A





1. OutOfMemoryError during long batch on Grails/Tomcat    stackoverflow.com

I'm running a long batch on my Grails app. The service contacts a web service and download xml that is store locally in the grails app (in the db). The objects downloaded ...

2. hibernate.cache.use_query_cache and long running batch    forum.hibernate.org

We've got a rather lengthy batch process that may end up inserting a large amount of data so we've been liberally using flush and clear on the sesssion to keep memory usage down. However, running through a profiler I noticed that we were still holding references to our inserted, updated objects after being flushed and cleared. Traced it down to the ...