rocksdb
zhangpeterx
这个作者很懒,什么都没留下…
展开
-
rocksdb批量删除指定前缀的key或者查找指定前缀开始的key
wiki:DeleteRange · facebook/rocksdb Wiki批量删除指定前缀的key原先的做法:Slice start, end;// set start and endauto it = db->NewIterator(ReadOptions());for (it->Seek(start); cmp->Compare(it->key(), ...原创 2019-08-07 21:19:57 · 4851 阅读 · 0 评论 -
RocksDB 的Put操作和WriteBatch操作
直接从GitHub上clone下来RocksDB的源码。RocksDB的put操作的声明代码在头文件include/rocksdb/db.h中: // Set the database entry for "key" to "value". // If "key" already exists, it will be overwritten. // Returns OK on suc...原创 2019-08-21 10:11:40 · 5284 阅读 · 0 评论 -
rocksdb报错解决:librocksdb.a(format.o): In function `Zlib_Uncompress':
在使用rocksdb的时候遇到了报错:build64_release.rep125/my_kv/rocksdb-6.1.2/librocksdb.a(format.o): In function `Zlib_Uncompress':/home/xxx/rocksdb-6.1.2/./util/compression.h:723: undefined reference to `inflateI...原创 2019-08-12 14:07:13 · 1223 阅读 · 0 评论