mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-11-22 04:36:32 +00:00
Use a good mem advice for uploads
This commit is contained in:
committed by
Clément Renault
parent
9ed7a81495
commit
21140a33e6
@@ -316,6 +316,7 @@ impl IndexScheduler {
|
||||
.try_clone_inner_file()
|
||||
.map_err(|e| Error::from_milli(e, Some(name.to_string())))?;
|
||||
let mmap = unsafe { memmap2::Mmap::map(&file)? };
|
||||
mmap.advise(memmap2::Advice::Sequential)?;
|
||||
let mmap = bytes::Bytes::from_owner(mmap);
|
||||
|
||||
let object = uuid.to_string();
|
||||
|
||||
Reference in New Issue
Block a user