perf: disable sqlite mmap to reduce memory pressure

This commit is contained in:
Greg Heartsfield 2023-05-06 15:40:56 -05:00
parent 1595ec783d
commit 2bcddf8bbf

View File

@ -19,7 +19,7 @@ PRAGMA foreign_keys = ON;
PRAGMA journal_size_limit = 32768; PRAGMA journal_size_limit = 32768;
PRAGMA temp_store = 2; -- use memory, not temp files PRAGMA temp_store = 2; -- use memory, not temp files
PRAGMA main.cache_size = 20000; -- 80MB max cache size per conn 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 /// Latest database version