Increase max concurrent readers on indexes

This commit is contained in:
arriven 2022-10-02 17:53:08 +03:00
parent 2827ff7957
commit 88e69f4302
3 changed files with 3 additions and 0 deletions

View file

@ -181,6 +181,7 @@ impl SnapshotJob {
let mut options = milli::heed::EnvOpenOptions::new();
options.map_size(self.index_size);
options.max_readers(1024);
let index = milli::Index::new(options, entry.path())?;
index.copy_to_path(dst, CompactionOption::Enabled)?;
}