Fix all the benchmark compilation errors

This commit is contained in:
Clément Renault 2024-11-19 11:24:36 +01:00
parent df5884b0c1
commit 32d0e50a75
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
9 changed files with 658 additions and 289 deletions

View file

@ -448,12 +448,11 @@ fn import_dump(
let builder = builder.with_embedders(embedders);
todo!("please plug the dump load of main");
// let (builder, user_result) = builder.add_documents(reader)?;
// let user_result = user_result?;
// tracing::info!(documents_found = user_result, "{} documents found.", user_result);
// builder.execute()?;
// wtxn.commit()?;
let (builder, user_result) = builder.add_documents(reader)?;
let user_result = user_result?;
tracing::info!(documents_found = user_result, "{} documents found.", user_result);
builder.execute()?;
wtxn.commit()?;
tracing::info!("All documents successfully imported.");
}