Add the options into the IndexScheduler

This commit is contained in:
Kerollmops
2023-09-04 16:38:05 +02:00
parent 966cbdab69
commit 76657af1f9
5 changed files with 24 additions and 18 deletions

View File

@ -1,3 +1,5 @@
use std::sync::Arc;
use grenad::CompressionType;
use rayon::ThreadPool;
@ -9,7 +11,7 @@ pub struct IndexerConfig {
pub max_memory: Option<usize>,
pub chunk_compression_type: CompressionType,
pub chunk_compression_level: Option<u32>,
pub thread_pool: Option<ThreadPool>,
pub thread_pool: Option<Arc<ThreadPool>>,
pub max_positions_per_attributes: Option<u32>,
pub skip_index_budget: bool,
}