-
Task
-
Resolution: Done
-
Critical
-
6.0.0.Final
-
None
Iterating over a huge ResultSet with MySQL seems to keep all the rows in memory: https://community.jboss.org/message/854402
We should investigate whether we can limit the memory usage to a fixed amount and whether this affects other drivers as well.
Setting the result set type and concurrency shouldn't be a problem.
Are you worried about the lock on the table being held while we are processing the results? process() doesn't do that much work on the caller's thread, so our iteration over the result set should be only slightly slower than the driver's fetching of the entire result set.