From c0b112c094f1fe4beba3a962bd108127abb58fbe Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Tue, 3 Jan 2023 06:22:04 -0600 Subject: [PATCH] improvement: enable auto_vacuum on connections --- src/schema.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/schema.rs b/src/schema.rs index 5c3b80d..8702395 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -13,9 +13,10 @@ use tracing::{debug, error, info}; /// Startup DB Pragmas pub const STARTUP_SQL: &str = r##" -PRAGMA main.synchronous=NORMAL; +PRAGMA main.synchronous = NORMAL; +PRAGMA auto_vacuum = FULL; PRAGMA foreign_keys = ON; -PRAGMA journal_size_limit=32768; +PRAGMA journal_size_limit = 32768; pragma mmap_size = 17179869184; -- cap mmap at 16GB "##;