java - Fetching 500K+ of rows from Oracle DB using Hibernate -


i fetching rows table writing rows csv file, table contains more 500,000 rows, while fetching data throws "heap out of memory" exception. how handle this?

use query.scroll() insteand of query.list() results of query. avoid loading whole result set memory.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -