Our pooling was pretty shitty actually, but it didn&#x27;t need to be fancy as 95% of our code was some sort of batch processing (as you guessed), after which the JVM terminated.  But yes, highly tweaked JDBC drivers over all.<p>Hibernate has iterator methods, but I recall (in 2010) it still loaded the entire result set into memory, with a &#x2F;&#x2F;TODO comment.  I remember thinking &quot;W...T...F...&quot;  I can&#x27;t tell you how many -Xmx16G (or 32&#x2F;64) flags I deleted...