mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08: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>,
|
||||
|
||||
/// MTBL max memory in bytes.
|
||||
#[structopt(long)]
|
||||
max_memory: Option<usize>,
|
||||
#[structopt(long, default_value = "1610612736")] // 1.5 GB
|
||||
max_memory: usize,
|
||||
|
||||
/// Size of the ARC cache when indexing.
|
||||
#[structopt(long, default_value = "43690")]
|
||||
@ -613,7 +613,7 @@ fn main() -> anyhow::Result<()> {
|
||||
Store::new(
|
||||
arc_cache_size,
|
||||
max_nb_chunks,
|
||||
max_memory,
|
||||
Some(max_memory),
|
||||
chunk_compression_type,
|
||||
chunk_compression_level,
|
||||
).index_csv(rdr, i, num_threads)
|
||||
|
Loading…
Reference in New Issue
Block a user