HarperFast / HarperFast/rocksdb-js

Support for compaction filtering

Open
#312 2 comments 0 reactions 1 assignee Claimed by @cb1kenobi View on GitHub
Dominant language
C++
Stars
21
Forks
2
Avg merge
2d 9h
Merged PRs (30d)
36

Description

RocksDB allows us to specify a custom compaction filter that is set when the database is opened. This compaction filter would need to read the record's value and determine if it's expired or if the record is a deletion record and the version is older than the retention time.

```
options.compaction_filter = new CustomCompactionFilter();
// or
options.compaction_filter_factory.reset(new CustomCompactionFilterFactory());
```

Docs: https://github.com/facebook/rocksdb/wiki/Compaction-Filter

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.