Add a link to the experimental feature GitHub discussion

This commit is contained in:
Kerollmops 2025-01-30 11:43:01 +01:00
parent 7a9382b115
commit 6a70c0ec92
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -307,6 +307,9 @@ fn create_or_open_index(
let mut options = EnvOpenOptions::new(); let mut options = EnvOpenOptions::new();
options.map_size(clamp_to_page_size(map_size)); options.map_size(clamp_to_page_size(map_size));
// You can find more details about this experimental
// environment variable on the following GitHub discussion:
// <https://github.com/orgs/meilisearch/discussions/806>
let max_readers = match std::env::var("MEILI_EXPERIMENTAL_INDEX_MAX_READERS") { let max_readers = match std::env::var("MEILI_EXPERIMENTAL_INDEX_MAX_READERS") {
Ok(value) => u32::from_str(&value).unwrap(), Ok(value) => u32::from_str(&value).unwrap(),
Err(VarError::NotPresent) => 1024, Err(VarError::NotPresent) => 1024,