mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Merge #5322
5322: Make sure arroy is using the rayon thread-pool r=dureuill a=Kerollmops This PR fixes #5249 by ensuring arroy uses the rayon thread pool. Co-authored-by: Kerollmops <clement@meilisearch.com>
This commit is contained in:
commit
a562d6abc1
1 changed files with 10 additions and 7 deletions
|
@ -191,13 +191,16 @@ where
|
||||||
|
|
||||||
indexing_context.progress.update_progress(IndexingStep::WritingEmbeddingsToDatabase);
|
indexing_context.progress.update_progress(IndexingStep::WritingEmbeddingsToDatabase);
|
||||||
|
|
||||||
build_vectors(
|
pool.install(|| {
|
||||||
index,
|
build_vectors(
|
||||||
wtxn,
|
index,
|
||||||
index_embeddings,
|
wtxn,
|
||||||
&mut arroy_writers,
|
index_embeddings,
|
||||||
&indexing_context.must_stop_processing,
|
&mut arroy_writers,
|
||||||
)?;
|
&indexing_context.must_stop_processing,
|
||||||
|
)
|
||||||
|
})
|
||||||
|
.unwrap()?;
|
||||||
|
|
||||||
post_processing::post_process(
|
post_processing::post_process(
|
||||||
indexing_context,
|
indexing_context,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue