Add more logging for postings lists fetching by word

This commit is contained in:
Clément Renault 2019-12-30 15:56:45 +01:00
parent 99d35fb940
commit eed07c724f

View File

@ -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);
}