mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Display the time it took to compute the word attribute documents ids
This commit is contained in:
parent
46ced5c828
commit
fea7cac206
@ -180,6 +180,8 @@ fn index_csv<R: io::Read>(
|
|||||||
fn compute_words_attributes_docids(wtxn: &mut heed::RwTxn, index: &Index) -> anyhow::Result<()> {
|
fn compute_words_attributes_docids(wtxn: &mut heed::RwTxn, index: &Index) -> anyhow::Result<()> {
|
||||||
eprintln!("Computing the attributes documents ids...");
|
eprintln!("Computing the attributes documents ids...");
|
||||||
|
|
||||||
|
let before = Instant::now();
|
||||||
|
|
||||||
let fst = match index.fst(&wtxn)? {
|
let fst = match index.fst(&wtxn)? {
|
||||||
Some(fst) => fst.map_data(|s| s.to_vec())?,
|
Some(fst) => fst.map_data(|s| s.to_vec())?,
|
||||||
None => return Ok(()),
|
None => return Ok(()),
|
||||||
@ -214,6 +216,8 @@ fn compute_words_attributes_docids(wtxn: &mut heed::RwTxn, index: &Index) -> any
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eprintln!("Computing the attributes documents ids took {:.02?}.", before.elapsed());
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user