Struct exocore_store::local::EntityIndexConfig [−][src]
pub struct EntityIndexConfig {
pub chain_index_min_depth: BlockHeight,
pub chain_index_depth_leeway: BlockHeight,
pub pending_index_config: MutationIndexConfig,
pub pending_index_boost: f32,
pub chain_index_config: MutationIndexConfig,
pub chain_index_in_memory: bool,
pub garbage_collector: GarbageCollectorConfig,
}
Expand description
Configuration of the entities index
Fields
chain_index_min_depth: BlockHeight
What is the minimum depth that a block needs to be the chain to be indexed. This is required to lower the odds that we are going to revert the block if our local chain forked.
CommitManagerConfig
.operations_cleanup_after_block_depth
chain_index_depth_leeway: BlockHeight
If specified, prevent indexing every new block on each commit. Operations will be kept in pending index for a bit longer and preventing the costly chain index modification.
pending_index_config: MutationIndexConfig
Configuration for the in-memory traits index that are in the pending store
pending_index_boost: f32
Boosts results of a full-text search when results originate from the pending store index (i.e. recently modified). This is useful as scores from the pending index may be less relevant because of the lack of other results (i.e. BM25 bias). A value above 1.0 boosts.
chain_index_config: MutationIndexConfig
Configuration for the persisted traits index that are in the chain
chain_index_in_memory: bool
For tests, allow not hitting the disk
garbage_collector: GarbageCollectorConfig
Configuration entity / mutation index garbage collector process.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for EntityIndexConfig
impl Send for EntityIndexConfig
impl Sync for EntityIndexConfig
impl Unpin for EntityIndexConfig
impl UnwindSafe for EntityIndexConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more