mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-08 11:56:37 +08:00
Show a bit of progress
This commit is contained in:
parent
86fcad788e
commit
37092adc71
@ -501,10 +501,14 @@ fn export_documents(
|
||||
}
|
||||
|
||||
let mut stdout = BufWriter::new(std::io::stdout());
|
||||
for ret in index.all_documents(&rtxn)?.skip(offset.unwrap_or(0)) {
|
||||
for (i, ret) in index.all_documents(&rtxn)?.skip(offset.unwrap_or(0)).enumerate() {
|
||||
let (id, doc) = ret?;
|
||||
let mut document = obkv_to_json(&all_fields, &fields_ids_map, doc)?;
|
||||
|
||||
if i % 10_000 == 0 {
|
||||
eprintln!("Starting the {}th document", i + offset.unwrap_or(0));
|
||||
}
|
||||
|
||||
if !ignore_vectors {
|
||||
'inject_vectors: {
|
||||
let embeddings = index.embeddings(&rtxn, id)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user