pub struct DatabaseConfig {
pub buffer_pool_size: usize,
pub read_pool_ratio: f64,
pub max_threads: usize,
pub enable_compression: bool,
pub checkpoint_threshold: u64,
pub jit_enabled: bool,
pub jit_threshold: u64,
pub jit_cache_capacity: usize,
}Expand description
Configuration for a KyuGraph database instance.
Fields§
§buffer_pool_size: usizeTotal buffer pool size in bytes. Default: 256 MB.
read_pool_ratio: f64Fraction of buffer pool allocated to the read pool. Default: 0.7 (70%).
max_threads: usizeMaximum number of worker threads. Default: number of CPUs.
enable_compression: boolEnable column compression. Default: true.
checkpoint_threshold: u64WAL size threshold in bytes before triggering checkpoint. Default: 256 MB.
jit_enabled: boolEnable JIT compilation for hot expressions. Default: true.
jit_threshold: u64Row count threshold before JIT compilation triggers. Default: 100,000.
jit_cache_capacity: usizeMaximum number of cached compiled expressions. Default: 1024.
Trait Implementations§
Source§impl Clone for DatabaseConfig
impl Clone for DatabaseConfig
Source§fn clone(&self) -> DatabaseConfig
fn clone(&self) -> DatabaseConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseConfig
impl Debug for DatabaseConfig
Auto Trait Implementations§
impl Freeze for DatabaseConfig
impl RefUnwindSafe for DatabaseConfig
impl Send for DatabaseConfig
impl Sync for DatabaseConfig
impl Unpin for DatabaseConfig
impl UnsafeUnpin for DatabaseConfig
impl UnwindSafe for DatabaseConfig
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
Mutably borrows from an owned value. Read more