From 129badd4e1a2b7d70449cc037515fdd65d5bfeb6 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sun, 18 Dec 2022 22:45:32 -0600 Subject: [PATCH] perf: reduce per thread mmap allocation for DB --- src/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schema.rs b/src/schema.rs index 1a5bff0..d9bb067 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -16,7 +16,7 @@ pub const STARTUP_SQL: &str = r##" PRAGMA main.synchronous=NORMAL; PRAGMA foreign_keys = ON; PRAGMA journal_size_limit=32768; -pragma mmap_size = 1073741824; -- 1024MB of mmap +pragma mmap_size = 134217728; -- 128MB of mmap "##; /// Latest database version