I'm having problems in generating a report the result reaches more than 500,000 lines. Believe me, this result is already filter. The query (DB2) runs almost instantly, but the the interaction in resultSet is absurdly slow.
I'm doing several tests to try to improve this process but so far without success. - At first was converting the direct data for the bean (used for report generation), but is very slow and the database gives timeout. - I tried to turn into a simpler process for testing (resultSet to HashMap) unsuccessfully - Used the setFetchSize configuration (2000) for the statement - I looked on the possibility of using thread safe, but does not support resultSet
Already modified the timeout of the bank to increase the processing time, but my problem was not resolved.
Anyway, already tried several possibilities. Does anyone have any tips or solution to my problem?