mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 21:50:07 +01:00
Add a default max-memory value to the indexer
This commit is contained in:
parent
1f6e00878d
commit
b597a92487
@ -86,8 +86,8 @@ struct IndexerOpt {
|
|||||||
max_nb_chunks: Option<usize>,
|
max_nb_chunks: Option<usize>,
|
||||||
|
|
||||||
/// MTBL max memory in bytes.
|
/// MTBL max memory in bytes.
|
||||||
#[structopt(long)]
|
#[structopt(long, default_value = "1610612736")] // 1.5 GB
|
||||||
max_memory: Option<usize>,
|
max_memory: usize,
|
||||||
|
|
||||||
/// Size of the ARC cache when indexing.
|
/// Size of the ARC cache when indexing.
|
||||||
#[structopt(long, default_value = "43690")]
|
#[structopt(long, default_value = "43690")]
|
||||||
@ -613,7 +613,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
Store::new(
|
Store::new(
|
||||||
arc_cache_size,
|
arc_cache_size,
|
||||||
max_nb_chunks,
|
max_nb_chunks,
|
||||||
max_memory,
|
Some(max_memory),
|
||||||
chunk_compression_type,
|
chunk_compression_type,
|
||||||
chunk_compression_level,
|
chunk_compression_level,
|
||||||
).index_csv(rdr, i, num_threads)
|
).index_csv(rdr, i, num_threads)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user