use of com.baidu.hugegraph.backend.store.rocksdb.RocksDBSessions.Session in project incubator-hugegraph by apache.
the class RocksDBPerfTest method testScanByPrefixAfterUpdate.
@Test
public void testScanByPrefixAfterUpdate() throws RocksDBException {
Session session = this.rocks.session();
this.testUpdate();
int n = 1000;
// 30w
int queryTimes = 300;
for (int j = 0; j < queryTimes; j++) {
for (int i = 0; i < n; i++) {
String key = String.format("index:%3d", i);
Iterator<BackendColumn> iter = session.scan(TABLE, getBytes(key));
while (iter.hasNext()) {
iter.next();
}
}
}
}
Aggregations