Add a span for the prepare_for_documents_reindexing

This commit is contained in:
Clément Renault 2024-05-30 12:14:22 +02:00
parent 0e9eb9eedb
commit 75496af985
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -899,6 +899,11 @@ impl<'a, 'i> Transform<'a, 'i> {
/// of the index with the attributes reordered accordingly to the `FieldsIdsMap` given as argument.
///
// TODO this can be done in parallel by using the rayon `ThreadPool`.
#[tracing::instrument(
level = "trace"
skip(self, wtxn, settings_diff),
target = "indexing::documents"
)]
pub fn prepare_for_documents_reindexing(
self,
wtxn: &mut heed::RwTxn<'i>,