Hi,
I have a table that has 80,000 records i have to read all data and I cannot filter records. It takes over 90 seconds. This is way too slow. I tried with setFetchSize of 50,100,1000,10000. Nothing helped.
Connection conn = getJdbcTemplate().getDataSource().getConnection();
conn.setAutoCommit(false);
PreparedStatement stmt = conn.prepareStatement(sqlGetAllData);//, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
stmt.setFetchSize(50);
What is the best way to retrieve large tables within 15-30 seconds.
Thanks,
Bharani
Forums: