Merge pull request #89 from Kerollmops/no-more-compaction

Remove the manual compaction triggering
This commit is contained in:
Clément Renault 2019-01-25 16:40:08 +01:00 committed by GitHub
commit 6c99ebe3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}; };