mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
feat: Remove the manual compaction triggering
This commit is contained in:
parent
fbc698567a
commit
94d357985f
@ -163,13 +163,6 @@ impl Database {
|
|||||||
let _ = result?;
|
let _ = result?;
|
||||||
info!("ingesting update file took {}", elapsed);
|
info!("ingesting update file took {}", elapsed);
|
||||||
|
|
||||||
let (elapsed, _) = elapsed::measure_time(|| {
|
|
||||||
// Compacting to trigger the merge operator only one time
|
|
||||||
// while ingesting the update and not each time searching
|
|
||||||
db.compact_range(Some(DATA_INDEX), Some(DATA_INDEX));
|
|
||||||
});
|
|
||||||
info!("compacting index range took {}", elapsed);
|
|
||||||
|
|
||||||
Snapshot::new(db.clone())
|
Snapshot::new(db.clone())
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user