fix : Memory usage keeps growing #167

This commit is contained in:
rustmailer
2026-03-06 21:04:36 +08:00
parent a9a9b4a85f
commit 5e3d0f1c06
2 changed files with 25 additions and 2 deletions
+19
View File
@@ -262,6 +262,25 @@ pub struct Settings {
help = "Maximum memory DuckDB may use (e.g. 512MB, 2GB, 80%)"
)]
pub bichon_duckdb_max_memory: Option<String>,
/// Number of Tantivy execution threads (default: 4)
#[clap(
long,
env,
default_value = "4",
help = "Number of Tantivy execution threads (default: 4)",
value_parser = clap::value_parser!(u16).range(1..)
)]
pub bichon_tantivy_threads: usize,
/// Tantivy indexer memory budget in bytes (default: 256MB)
#[clap(
long,
env,
default_value = "268435456",
help = "Set the memory budget for Tantivy indexer in bytes (default: 256MB)"
)]
pub bichon_tantivy_buffer_size: usize,
}
impl Settings {