Add comparison benchmark between bulk and incremental facet indexing

This commit is contained in:
Loïc Lecrenier 2022-09-06 13:39:08 +02:00 committed by Loïc Lecrenier
parent b2f01ad204
commit bee3c23b45
3 changed files with 84 additions and 5 deletions

View file

@ -138,11 +138,13 @@ pub(crate) fn write_typed_chunk_into_index(
is_merged_database = true;
}
TypedChunk::FieldIdFacetNumberDocids(facet_id_number_docids_iter) => {
// TODO indexer options for the facet level database
let indexer = FacetsUpdate::new(index, FacetType::Number, facet_id_number_docids_iter);
indexer.execute(wtxn)?;
is_merged_database = true;
}
TypedChunk::FieldIdFacetStringDocids(facet_id_string_docids_iter) => {
// TODO indexer options for the facet level database
let indexer = FacetsUpdate::new(index, FacetType::String, facet_id_string_docids_iter);
indexer.execute(wtxn)?;
is_merged_database = true;