From 94d357985fb964a30f4ec040df1e58489ae50f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 25 Jan 2019 16:05:56 +0100 Subject: [PATCH] feat: Remove the manual compaction triggering --- src/database/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/database/mod.rs b/src/database/mod.rs index d34a288ca..9b6208264 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -163,13 +163,6 @@ impl Database { let _ = result?; 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()) };