From b7c87371667ff00379805f53350517d313650d55 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Tue, 3 Jan 2023 06:22:43 -0600 Subject: [PATCH] improvement: enable auto_vacuum on database creation --- src/schema.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/schema.rs b/src/schema.rs index 8702395..ced6ec1 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -29,6 +29,7 @@ const INIT_SQL: &str = formatcp!( -- Database settings PRAGMA encoding = "UTF-8"; PRAGMA journal_mode=WAL; +PRAGMA auto_vacuum = FULL; PRAGMA main.synchronous=NORMAL; PRAGMA foreign_keys = ON; PRAGMA application_id = 1654008667;