摘要:
Oracle实现的批处理更新效果不错,至于每次批处理的记录数还需要根据每条记录的大小,服务器的负载情况等多种因素进行微调。 1 private static void batchInsertTest(OracleDataSource ds)throws SQLException{ 2 3 final int NUM=1000000; 4 final int COL=200000; 5 final int ROW=NUM/COL; 6 /*GregorianCalendar c = new GregorianCalendar(2010,1,1); 7 Date[] atimes=new Date 阅读全文