From 0bde22fe6759390cbe4a33e9f53584baa1dafd4d Mon Sep 17 00:00:00 2001 From: Rouven Himmelstein Date: Thu, 24 Nov 2022 21:07:38 +0100 Subject: [PATCH] feat(datbase): cleanup on scheduler tick --- src/scheduler.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scheduler.rs b/src/scheduler.rs index 7acc758..e9772a2 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -62,5 +62,8 @@ pub fn index_resources(resource_reader: ResourceReader, resource_store: Resource info!("Inserting new resources"); resource_store.add_resources(map); + info!("Cleanup database"); + resource_store.vacuum(); + info!("Job done in {}s!", s.elapsed().as_secs()); }