mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-25 12:47:28 +01:00
fix the wiki indexing benchmark
This commit is contained in:
parent
a2743baaa3
commit
ed7fd855af
@ -197,7 +197,8 @@ fn indexing_wiki(c: &mut Criterion) {
|
|||||||
move |index| {
|
move |index| {
|
||||||
let update_builder = UpdateBuilder::new(0);
|
let update_builder = UpdateBuilder::new(0);
|
||||||
let mut wtxn = index.write_txn().unwrap();
|
let mut wtxn = index.write_txn().unwrap();
|
||||||
let builder = update_builder.index_documents(&mut wtxn, &index);
|
let mut builder = update_builder.index_documents(&mut wtxn, &index);
|
||||||
|
builder.enable_autogenerate_docids();
|
||||||
|
|
||||||
let documents = utils::documents_from(datasets_paths::SMOL_WIKI_ARTICLES, "csv");
|
let documents = utils::documents_from(datasets_paths::SMOL_WIKI_ARTICLES, "csv");
|
||||||
builder.execute(documents, |_, _| ()).unwrap();
|
builder.execute(documents, |_, _| ()).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user