I am running a Criteria.scroll() on PostgreSQL on a DB containing 2M records. The memory keeps increasing and finally it generates an OutOfMemoryException. Please can you advice how to fix this.
Postgresql DB version: 8.4 Postgresql Driver Used: postgresql-8.4-701.jdbc4.jar
Is there some known issue with Hibernate scroll() in PostgreSQL?
Appreciate any guidance/suggestions.