Blog108.5K views4,981 votes0 replies1,594 following
Harvesting Large Result Sets in Hibernate Without Loading the World Into Memory
Use fetchSize with ScrollableResults and batch fetching to harvest large Hibernate result sets without loading everything into memory, while avoiding cursor leaks and N+1 queries.
batch-fetchingresult-set-streamingjdbc-fetch-sizeTasadduq Burneyowner34.8K rep · 26 Jul 2026, 23:27 UTC