pub struct FeatureStoreConfig {
pub online_cache_capacity: usize,
pub write_buffer_size: usize,
pub write_buffer_max_age_micros: u64,
pub default_ttl_seconds: u64,
pub freshness_threshold: f64,
pub sync_on_write: bool,
pub parallelism: usize,
pub compaction_threshold: f64,
}Expand description
Feature store configuration.
Controls the performance trade-offs between latency, throughput, and durability.
§Examples
use synadb::feature_store::FeatureStoreConfig;
// High-throughput ingestion config
let config = FeatureStoreConfig {
online_cache_capacity: 200_000,
write_buffer_size: 8192,
sync_on_write: false,
..Default::default()
};Fields§
§online_cache_capacity: usizeMaximum entities in online cache (default: 100,000).
write_buffer_size: usizeWrite buffer flush threshold in entries (default: 4096).
write_buffer_max_age_micros: u64Write buffer max age before flush in microseconds (default: 10,000 = 10ms).
default_ttl_seconds: u64Default TTL for features without explicit TTL in seconds (default: 86400 = 1 day).
freshness_threshold: f64DAVO freshness threshold below which features are considered stale (default: 0.5).
sync_on_write: boolEnable sync_on_write for durability (default: false for throughput).
parallelism: usizeNumber of threads for parallel dataset generation (default: 0 = num_cpus).
compaction_threshold: f64Compaction threshold: ratio of superseded entries triggering compaction (default: 0.5).
Implementations§
Trait Implementations§
Source§impl Clone for FeatureStoreConfig
impl Clone for FeatureStoreConfig
Source§fn clone(&self) -> FeatureStoreConfig
fn clone(&self) -> FeatureStoreConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureStoreConfig
impl Debug for FeatureStoreConfig
Source§impl Default for FeatureStoreConfig
impl Default for FeatureStoreConfig
Source§impl<'de> Deserialize<'de> for FeatureStoreConfig
impl<'de> Deserialize<'de> for FeatureStoreConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FeatureStoreConfig
impl RefUnwindSafe for FeatureStoreConfig
impl Send for FeatureStoreConfig
impl Sync for FeatureStoreConfig
impl Unpin for FeatureStoreConfig
impl UnsafeUnpin for FeatureStoreConfig
impl UnwindSafe for FeatureStoreConfig
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