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
Post a Comment