Table of Contents

Enum CompactionStyle

Namespace
RocksDbNet
Assembly
RocksDb.Net.dll

Compaction style.

public enum CompactionStyle

Fields

Fifo = 2

First-in, first-out. Never really compacts; it deletes the oldest files once a size or age bound is passed. For time-series and cache data where losing the oldest entries is acceptable, and wrong for anything that must be kept.

Level = 0

Levelled compaction, the default. Keeps read amplification low and space overhead small, at the cost of writing data several times as it moves down the levels.

Universal = 1

Universal compaction. Writes each piece of data far fewer times, so write-heavy workloads go faster, but it can transiently need close to twice the database size in free space and reads touch more files.