improvement: enable auto_vacuum on connections

This commit is contained in:
Greg Heartsfield 2023-01-03 06:22:04 -06:00
parent cb283ac316
commit c0b112c094

View File

@ -14,6 +14,7 @@ use tracing::{debug, error, info};
/// Startup DB Pragmas /// Startup DB Pragmas
pub const STARTUP_SQL: &str = r##" pub const STARTUP_SQL: &str = r##"
PRAGMA main.synchronous = NORMAL; PRAGMA main.synchronous = NORMAL;
PRAGMA auto_vacuum = FULL;
PRAGMA foreign_keys = ON; PRAGMA foreign_keys = ON;
PRAGMA journal_size_limit = 32768; PRAGMA journal_size_limit = 32768;
pragma mmap_size = 17179869184; -- cap mmap at 16GB pragma mmap_size = 17179869184; -- cap mmap at 16GB