From bd1a371c62cf7d1fb79b29c1b5ccde30d63aa0ca Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Thu, 18 Mar 2021 15:41:44 +0100 Subject: [PATCH] Compute the WordsLevelPositions only once --- milli/src/update/index_documents/mod.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/milli/src/update/index_documents/mod.rs b/milli/src/update/index_documents/mod.rs index e7143bde0..3a41a52ae 100644 --- a/milli/src/update/index_documents/mod.rs +++ b/milli/src/update/index_documents/mod.rs @@ -718,19 +718,6 @@ impl<'t, 'u, 'i, 'a> IndexDocuments<'t, 'u, 'i, 'a> { } builder.execute()?; - // Run the words positions update operation. - let mut builder = WordsLevelPositions::new(self.wtxn, self.index, self.update_id); - builder.chunk_compression_type = self.chunk_compression_type; - builder.chunk_compression_level = self.chunk_compression_level; - builder.chunk_fusing_shrink_size = self.chunk_fusing_shrink_size; - if let Some(value) = self.facet_level_group_size { - builder.level_group_size(value); - } - if let Some(value) = self.facet_min_level_size { - builder.min_level_size(value); - } - builder.execute()?; - // Run the words prefixes update operation. let mut builder = WordsPrefixes::new(self.wtxn, self.index, self.update_id); builder.chunk_compression_type = self.chunk_compression_type;