From eed07c724ffd89c99cc8afa56e1c279be3b9bbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 30 Dec 2019 15:56:45 +0100 Subject: [PATCH] Add more logging for postings lists fetching by word --- meilisearch-core/src/bucket_sort.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meilisearch-core/src/bucket_sort.rs b/meilisearch-core/src/bucket_sort.rs index 8e820c71f..d1889b521 100644 --- a/meilisearch-core/src/bucket_sort.rs +++ b/meilisearch-core/src/bucket_sort.rs @@ -509,6 +509,7 @@ fn fetch_matches<'txn, 'tag>( let QueryWordAutomaton { query, is_exact, .. } = automaton; dfa_time += before_dfa.elapsed(); + let before_word_postings_lists_fetching = Instant::now(); let mut stream_next_time = Duration::default(); let mut number_of_words = 0; let mut postings_lists_original_length = 0; @@ -573,6 +574,8 @@ fn fetch_matches<'txn, 'tag>( debug!("{:?} gives {} words", query, number_of_words); debug!("{:?} gives postings lists of length {} (original was {})", query, postings_lists_length, postings_lists_original_length); + debug!("{:?} took {:.02?} to fetch postings lists", + query, before_word_postings_lists_fetching.elapsed()); debug!("stream next took {:.02?}", stream_next_time); }