Increase the number of readers as the indexer uses readers too

This commit is contained in:
Clément Renault 2024-11-19 13:35:39 +01:00
parent 1aef0e4037
commit b4bf7ce9b0
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ fn setup_index() -> Index {
setup_dir(path); setup_dir(path);
let mut options = EnvOpenOptions::new(); let mut options = EnvOpenOptions::new();
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
options.max_readers(10); options.max_readers(100);
Index::new(options, path).unwrap() Index::new(options, path).unwrap()
} }

View File

@ -66,7 +66,7 @@ pub fn base_setup(conf: &Conf) -> Index {
let mut options = EnvOpenOptions::new(); let mut options = EnvOpenOptions::new();
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
options.max_readers(10); options.max_readers(100);
let index = Index::new(options, conf.database_name).unwrap(); let index = Index::new(options, conf.database_name).unwrap();
let config = IndexerConfig::default(); let config = IndexerConfig::default();