pub struct HotConfig {
pub dim: usize,
pub max_items: usize,
pub search_timeout: Duration,
pub shard_count: usize,
pub max_concurrent_searches: usize,
pub batch_window_ms: u64,
pub max_batch_size: usize,
}Expand description
热层配置 —— 内存索引的参数
Fields§
§dim: usize向量维度
max_items: usize热层最大条目数
search_timeout: Duration检索超时
shard_count: usize分片数(减少锁竞争)
max_concurrent_searches: usize最大并发检索
batch_window_ms: u64批量聚合窗口(毫秒)
max_batch_size: usize最大批量大小
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HotConfig
impl<'de> Deserialize<'de> for HotConfig
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 HotConfig
impl RefUnwindSafe for HotConfig
impl Send for HotConfig
impl Sync for HotConfig
impl Unpin for HotConfig
impl UnsafeUnpin for HotConfig
impl UnwindSafe for HotConfig
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