Table of Contents

Enum Temperature

Namespace
RocksDbNet
Assembly
RocksDb.Net.dll

A hint about how hot the data in a file is, which lets RocksDb place files on storage suited to how often they are read.

public enum Temperature

Fields

Cold = 12

Read rarely. Suited to cheaper, slower storage.

Cool = 10

Read occasionally.

Hot = 4

Read very frequently. Belongs on the fastest storage.

Ice = 16

Effectively archival, read almost never.

Unknown = 0

No temperature information. This is the default.

Warm = 8

Read regularly, but less than Hot.

Remarks

RocksDb only passes this through to the environment; a plain filesystem ignores it. It matters when the Env in use maps temperatures onto different storage tiers.

The values are not contiguous, and are mirrored from include/rocksdb/types.h because the C API declares this parameter as a plain int.