mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Make sure arroy is using the rayon thread-pool
This commit is contained in:
		@@ -191,13 +191,16 @@ where
 | 
			
		||||
 | 
			
		||||
        indexing_context.progress.update_progress(IndexingStep::WritingEmbeddingsToDatabase);
 | 
			
		||||
 | 
			
		||||
        build_vectors(
 | 
			
		||||
            index,
 | 
			
		||||
            wtxn,
 | 
			
		||||
            index_embeddings,
 | 
			
		||||
            &mut arroy_writers,
 | 
			
		||||
            &indexing_context.must_stop_processing,
 | 
			
		||||
        )?;
 | 
			
		||||
        pool.install(|| {
 | 
			
		||||
            build_vectors(
 | 
			
		||||
                index,
 | 
			
		||||
                wtxn,
 | 
			
		||||
                index_embeddings,
 | 
			
		||||
                &mut arroy_writers,
 | 
			
		||||
                &indexing_context.must_stop_processing,
 | 
			
		||||
            )
 | 
			
		||||
        })
 | 
			
		||||
        .unwrap()?;
 | 
			
		||||
 | 
			
		||||
        post_processing::post_process(
 | 
			
		||||
            indexing_context,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user