I have an issue with performance in some code that I have inherited and am looking for a way around it. This Java/Swing application has client side calls via
JDBC to the database using a CollableStatement. Summary of code follows:
In my scenario, say the call returns 5000 rows of data. The code as presented above, that does not instantiate the RecordProcessor (which is a threaded processor for each result returned), simply spinning through the 5000 records takes 17-18 seconds, consistently.
Given this, the bottle neck appears to be the rs.next() method. Short of a complete refactor of the tiered architecture, is there anything that can be done to enhance the performance?