- rocksdb::WriteBatch batch;
- batch.SingleDelete(key1);
- s = db->Write(rocksdb::WriteOptions(), &batch);
Notes
SingleDelete
is NOT compatible with cuckoo hash tables, which means you should not callSingleDelete
if you setoptions.memtable_factory
withNewHashCuckooRepFactory
- Consecutive single deletions are currently not allowed