Skip to content

Commit

Permalink
feat(datbase): cleanup on scheduler tick
Browse files Browse the repository at this point in the history
  • Loading branch information
RouHim committed Nov 24, 2022
1 parent 1a13b92 commit 0bde22f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit 0bde22f

Please sign in to comment.