Display more debug info for prefix tolerant fetches

This commit is contained in:
Clément Renault 2020-01-19 11:07:32 +01:00
parent c334d6b7fe
commit e44d498c94
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -413,7 +413,8 @@ pub fn traverse_query_tree<'o, 'txn>(
let before = Instant::now(); let before = Instant::now();
let docids = sdset::duo::Union::new(prefix_docids, exact_docids).into_set_buf(); let docids = sdset::duo::Union::new(prefix_docids, exact_docids).into_set_buf();
println!("{:2$}prefix docids construction took {:.02?}", "", before.elapsed(), depth * 2); println!("{:4$}prefix docids ({} and {}) construction took {:.02?}",
"", prefix_docids.len(), exact_docids.len(), before.elapsed(), depth * 2);
Cow::Owned(docids) Cow::Owned(docids)