mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Increase the ARCache to 500 entries
This commit is contained in:
parent
2b7b18fb5f
commit
6264dbf326
@ -38,7 +38,7 @@ pub fn extract_facet_number_docids<R: io::Read + io::Seek>(
|
||||
);
|
||||
let mut cached_facet_number_docids_sorter =
|
||||
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(20).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
facet_number_docids_sorter,
|
||||
b"fnd",
|
||||
super::SLED_DB.clone(),
|
||||
|
@ -46,7 +46,7 @@ pub fn extract_facet_string_docids<R: io::Read + io::Seek>(
|
||||
);
|
||||
let mut cached_facet_string_docids_sorter =
|
||||
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(200).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
facet_string_docids_sorter,
|
||||
b"fsd",
|
||||
SLED_DB.clone(),
|
||||
|
@ -41,7 +41,7 @@ pub fn extract_fid_word_count_docids<R: io::Read + io::Seek>(
|
||||
);
|
||||
let mut cached_fid_word_count_docids_sorter =
|
||||
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(300).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
fid_word_count_docids_sorter,
|
||||
b"fwc",
|
||||
super::SLED_DB.clone(),
|
||||
|
@ -50,7 +50,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
|
||||
max_memory.map(|m| m / 3),
|
||||
);
|
||||
let mut cached_word_fid_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, _>::new(
|
||||
NonZeroUsize::new(300).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
word_fid_docids_sorter,
|
||||
b"wfd",
|
||||
SLED_DB.clone(),
|
||||
@ -111,7 +111,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
|
||||
max_memory.map(|m| m / 3),
|
||||
);
|
||||
let mut cached_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(100).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
word_docids_sorter,
|
||||
b"wdi",
|
||||
SLED_DB.clone(),
|
||||
@ -126,7 +126,7 @@ pub fn extract_word_docids<R: io::Read + io::Seek>(
|
||||
max_memory.map(|m| m / 3),
|
||||
);
|
||||
let mut cached_exact_word_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(100).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
exact_word_docids_sorter,
|
||||
b"ewd",
|
||||
SLED_DB.clone(),
|
||||
|
@ -53,7 +53,7 @@ pub fn extract_word_pair_proximity_docids<R: io::Read + io::Seek>(
|
||||
max_memory.map(|m| m / MAX_DISTANCE as usize),
|
||||
);
|
||||
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(100).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
sorter,
|
||||
b"wpp",
|
||||
super::SLED_DB.clone(),
|
||||
|
@ -39,7 +39,7 @@ pub fn extract_word_position_docids<R: io::Read + io::Seek>(
|
||||
);
|
||||
let mut cached_word_position_docids_sorter =
|
||||
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(300).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
word_position_docids_sorter,
|
||||
b"wpd",
|
||||
super::SLED_DB.clone(),
|
||||
|
@ -66,7 +66,7 @@ impl<'t, 'i> WordPrefixDocids<'t, 'i> {
|
||||
self.max_memory,
|
||||
);
|
||||
let mut cached_prefix_docids_sorter = SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(200).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
prefix_docids_sorter,
|
||||
b"pdi",
|
||||
SLED_DB.clone(),
|
||||
|
@ -71,7 +71,7 @@ impl<'t, 'i> WordPrefixIntegerDocids<'t, 'i> {
|
||||
);
|
||||
let mut cached_prefix_integer_docids_sorter =
|
||||
SorterCacheDelAddCboRoaringBitmap::<20, MergeFn>::new(
|
||||
NonZeroUsize::new(200).unwrap(),
|
||||
NonZeroUsize::new(500).unwrap(),
|
||||
prefix_integer_docids_sorter,
|
||||
b"pid",
|
||||
SLED_DB.clone(),
|
||||
|
Loading…
Reference in New Issue
Block a user