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 |
Hbase 批量写入操作
最新推荐文章于 2025-06-02 11:06:06 发布