Category Archives: RocksDB

[RocksDB] Reverse search

To get a reverse order list, assume prefix is ​​set and startRow is not specified. We need to add the startRow to the maximum value of the character for positioning if (startRow != null) { scanObj.setStartRow(startRow); } else if (request.isReverse()) … Continue reading

Posted in Java, RocksDB | Comments Off on [RocksDB] Reverse search

RocksDB Tool

Install rocksdb first. brew install rocksdb Add alias in zshrc alias ldb = ‘rocksdb_ldb –db=. ‘ List all column families # ldb list_column_families Column families in .: {default, S1, User, C1, C2, U1, C3} Scan command: # ldb –column_family=User scan … Continue reading

Posted in RocksDB | Comments Off on RocksDB Tool