mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Increase the number of readers as the indexer uses readers too
This commit is contained in:
parent
32caf3745e
commit
105ede55e6
@ -35,7 +35,7 @@ fn setup_index() -> Index {
|
||||
setup_dir(path);
|
||||
let mut options = EnvOpenOptions::new();
|
||||
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
|
||||
options.max_readers(10);
|
||||
options.max_readers(100);
|
||||
Index::new(options, path).unwrap()
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ pub fn base_setup(conf: &Conf) -> Index {
|
||||
|
||||
let mut options = EnvOpenOptions::new();
|
||||
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 config = IndexerConfig::default();
|
||||
|
Loading…
Reference in New Issue
Block a user