PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

Java JDBC ignora setFetchSize?

Prova a disattivare il commit automatico:

// make sure autocommit is off
connection.setAutoCommit(false);

 st = connection.createStatement();
 st.setFetchSize(1000);
 System.out.println("start query ");
 rs = st.executeQuery(queryString);
 System.out.println("done query");

Riferimento