Code Nmr |
List | List Size | Code |
Avarage Elapsed Time (sec) |
|
1 | List<Put> batchAllRows; |
250.000 |
table.setAutoFlush(false);
|
27 | |
2 | List<Put> batchAllRows; | 250.000 | table.setAutoFlush(false); table.put(batchAllRows); table.flushCommits(); |
103 | |
3 | List<Row> batchAllRows; | 250.000 | table.setAutoFlush(false); Object[] results = new Object[batchAllRows.size()]; table.batch(batchAllRows, results); //table.batch(batchAllRows) ; /* already tried */ table.flushCommits(); |
105 |