From 2bcddf8bbfe11a2db6419303fb8935e41687558d Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 6 May 2023 15:40:56 -0500 Subject: [PATCH] perf: disable sqlite mmap to reduce memory pressure --- src/repo/sqlite_migration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo/sqlite_migration.rs b/src/repo/sqlite_migration.rs index 60544b2..f2ccab0 100644 --- a/src/repo/sqlite_migration.rs +++ b/src/repo/sqlite_migration.rs @@ -19,7 +19,7 @@ PRAGMA foreign_keys = ON; PRAGMA journal_size_limit = 32768; PRAGMA temp_store = 2; -- use memory, not temp files PRAGMA main.cache_size = 20000; -- 80MB max cache size per conn -pragma mmap_size = 4294967296; -- cap mmap at 4GB +pragma mmap_size = 0; -- disable mmap (default) "##; /// Latest database version