System.out.println("> " + i);
String cmd = "INSERT INTO itemlog_new (id, timedate, itemid, source, event, param1, param2, param3, param4)"
+ " SELECT id, timedate, itemid, source, event, param1, param2, param3, param4 FROM itemlog WHERE id >= " + (i * 100) + " AND id < " + ((i+1) * 100);
DBTransaction transaction = transactionPool.beginWork();
transaction.execute(cmd, null);
transactionPool.commit(transaction);
System.out.println("< " + i);
Thread.sleep(3000);
}
}
}