Enum RateLimiterPriority
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
The priority an operation is given by the rate limiter, if one is configured.
public enum RateLimiterPriority
Fields
High = 2High priority.
Low = 0Low priority, yielding to everything else. The default for background work.
Mid = 1Total = 4Do not charge the rate limiter for this operation. The default.
The name is RocksDb's:
Env::IO_TOTALis the count of real priorities, and RocksDb reuses it as the "no rate limiting" value rather than declaring a separate one.ReadOptions::rate_limiter_priorityis declared as= Env::IO_TOTALwith the comment that the special value disables charging the rate limiter, so this is both the default and a meaningful thing to pass. This used to be documented as a programming error to use, which had it exactly backwards.User = 3User-facing work, which the rate limiter should not delay.
Remarks
Mirrored from Env::IOPriority in include/rocksdb/env.h because
the C API declares this parameter as a plain int.