Reduce candidates threshold

This commit is contained in:
many 2021-10-05 18:52:14 +02:00
parent ea4bd29d14
commit 1bd15d849b
No known key found for this signature in database
GPG Key ID: 2CEF23B75189EACA
2 changed files with 2 additions and 1 deletions

View File

@ -361,6 +361,7 @@ async fn main() -> anyhow::Result<()> {
// We must use the write transaction of the update here.
let mut wtxn = index_cloned.write_txn()?;
let mut builder = update_builder.index_documents(&mut wtxn, &index_cloned);
builder.enable_autogenerate_docids();
match method.as_str() {
"replace" => builder

View File

@ -19,7 +19,7 @@ const LCM_10_FIRST_NUMBERS: u32 = 2520;
/// Threshold on the number of candidates that will make
/// the system to choose between one algorithm or another.
const CANDIDATES_THRESHOLD: u64 = 1000;
const CANDIDATES_THRESHOLD: u64 = 500;
type FlattenedQueryTree = Vec<Vec<Vec<Query>>>;