Issue #96 new

Taking too much time to insert values

Anonymous created an issue

PreparedStatement preStat = null; try{ preStat = con.prepareStatement("insert into sample values (?,?)"); Calendar calendar = Calendar.getInstance(); System.out.println("started time : " + new Date()); for(long i=0;i<=10000;i++){ preStat.setLong(1,calendar.getTimeInMillis()); preStat.setLong(2, i); preStat.addBatch(); } preStat.executeBatch(); System.out.println("stoped time : " + new Date());

Comments (0)

  1. Log in to comment