From cda6ca1ee6880ebfaaf53a4c969e6a950b1d56c4 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 24 Oct 2023 14:26:14 +0200 Subject: [PATCH] Remove TypedChunk::NewDocumentIds --- milli/src/update/index_documents/extract/mod.rs | 3 --- milli/src/update/index_documents/typed_chunk.rs | 7 ------- 2 files changed, 10 deletions(-) diff --git a/milli/src/update/index_documents/extract/mod.rs b/milli/src/update/index_documents/extract/mod.rs index 7d643d61f..20ee38c4f 100644 --- a/milli/src/update/index_documents/extract/mod.rs +++ b/milli/src/update/index_documents/extract/mod.rs @@ -366,9 +366,6 @@ fn send_and_extract_flattened_documents_data( max_positions_per_attributes, )?; - // send documents_ids to DB writer - let _ = lmdb_writer_sx.send(Ok(TypedChunk::NewDocumentsIds(documents_ids))); - // send docid_word_positions_chunk to DB writer let docid_word_positions_chunk = unsafe { as_cloneable_grenad(&docid_word_positions_chunk)? }; diff --git a/milli/src/update/index_documents/typed_chunk.rs b/milli/src/update/index_documents/typed_chunk.rs index 6a2ea8486..aebfca151 100644 --- a/milli/src/update/index_documents/typed_chunk.rs +++ b/milli/src/update/index_documents/typed_chunk.rs @@ -29,7 +29,6 @@ pub(crate) enum TypedChunk { FieldIdDocidFacetNumbers(grenad::Reader), Documents(grenad::Reader), FieldIdWordCountDocids(grenad::Reader>), - NewDocumentsIds(RoaringBitmap), WordDocids { word_docids_reader: grenad::Reader>, exact_word_docids_reader: grenad::Reader>, @@ -62,9 +61,6 @@ impl TypedChunk { TypedChunk::FieldIdWordCountDocids(grenad) => { format!("FieldIdWordcountDocids {{ number_of_entries: {} }}", grenad.len()) } - TypedChunk::NewDocumentsIds(grenad) => { - format!("NewDocumentsIds {{ number_of_entries: {} }}", grenad.len()) - } TypedChunk::WordDocids { word_docids_reader, exact_word_docids_reader, @@ -150,9 +146,6 @@ pub(crate) fn write_typed_chunk_into_index( )?; is_merged_database = true; } - TypedChunk::NewDocumentsIds(documents_ids) => { - return Ok((documents_ids, is_merged_database)) - } TypedChunk::WordDocids { word_docids_reader, exact_word_docids_reader,