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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

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

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

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

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.