mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
Add more logging for postings lists fetching by word
This commit is contained in:
parent
99d35fb940
commit
eed07c724f
@ -509,6 +509,7 @@ fn fetch_matches<'txn, 'tag>(
|
|||||||
let QueryWordAutomaton { query, is_exact, .. } = automaton;
|
let QueryWordAutomaton { query, is_exact, .. } = automaton;
|
||||||
dfa_time += before_dfa.elapsed();
|
dfa_time += before_dfa.elapsed();
|
||||||
|
|
||||||
|
let before_word_postings_lists_fetching = Instant::now();
|
||||||
let mut stream_next_time = Duration::default();
|
let mut stream_next_time = Duration::default();
|
||||||
let mut number_of_words = 0;
|
let mut number_of_words = 0;
|
||||||
let mut postings_lists_original_length = 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 {} words", query, number_of_words);
|
||||||
debug!("{:?} gives postings lists of length {} (original was {})",
|
debug!("{:?} gives postings lists of length {} (original was {})",
|
||||||
query, postings_lists_length, postings_lists_original_length);
|
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);
|
debug!("stream next took {:.02?}", stream_next_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user