pub struct UniConfig {Show 18 fields
pub cache_size: usize,
pub parallelism: usize,
pub batch_size: usize,
pub max_frontier_size: usize,
pub auto_flush_threshold: usize,
pub auto_flush_interval: Option<Duration>,
pub auto_flush_min_mutations: usize,
pub wal_enabled: bool,
pub compaction: CompactionConfig,
pub throttle: WriteThrottleConfig,
pub file_sandbox: FileSandboxConfig,
pub query_timeout: Duration,
pub max_query_memory: usize,
pub max_transaction_memory: usize,
pub max_compaction_rows: usize,
pub enable_vid_labels_index: bool,
pub object_store: ObjectStoreConfig,
pub index_rebuild: IndexRebuildConfig,
}Fields§
§cache_size: usizeMaximum adjacency cache size in bytes (default: 1GB)
parallelism: usizeNumber of worker threads for parallel execution
batch_size: usizeSize of each data morsel/batch (number of rows)
max_frontier_size: usizeMaximum size of traversal frontier before pruning
auto_flush_threshold: usizeAuto-flush threshold for L0 buffer (default: 10_000 mutations)
auto_flush_interval: Option<Duration>Auto-flush interval for L0 buffer (default: 5 seconds). Flush triggers if time elapsed AND mutation count >= auto_flush_min_mutations. Set to None to disable time-based flush.
auto_flush_min_mutations: usizeMinimum mutations required before time-based flush triggers (default: 1). Prevents unnecessary flushes when there’s minimal activity.
wal_enabled: boolEnable write-ahead logging (default: true)
compaction: CompactionConfigCompaction configuration
throttle: WriteThrottleConfigWrite throttling configuration
file_sandbox: FileSandboxConfigFile sandbox configuration for BACKUP/COPY/EXPORT commands. MUST be enabled with allowed paths in server mode to prevent arbitrary file access.
query_timeout: DurationDefault query execution timeout (default: 30s)
max_query_memory: usizeDefault maximum memory per query (default: 1GB)
max_transaction_memory: usizeMaximum transaction buffer memory in bytes (default: 1GB). Limits memory usage during transactions to prevent OOM.
max_compaction_rows: usizeMaximum rows for in-memory compaction (default: 5M, ~725MB at 145 bytes/row). Configurable OOM guard to prevent memory exhaustion during compaction.
enable_vid_labels_index: boolEnable in-memory VID-to-labels index for O(1) lookups (default: true). Memory cost: ~42 bytes per vertex (1M vertices ≈ 42MB).
object_store: ObjectStoreConfigObject store resilience configuration
index_rebuild: IndexRebuildConfigBackground index rebuild configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UniConfig
impl RefUnwindSafe for UniConfig
impl Send for UniConfig
impl Sync for UniConfig
impl Unpin for UniConfig
impl UnsafeUnpin for UniConfig
impl UnwindSafe for UniConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more