From 5999009779530e459453d91fad08f692d1fa41bc Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Thu, 2 Feb 2023 18:34:30 -0600 Subject: [PATCH] improvement: increase connection cache size --- src/repo/sqlite_migration.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repo/sqlite_migration.rs b/src/repo/sqlite_migration.rs index 61f8524..6990106 100644 --- a/src/repo/sqlite_migration.rs +++ b/src/repo/sqlite_migration.rs @@ -17,6 +17,7 @@ PRAGMA main.synchronous = NORMAL; 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 = 17179869184; -- cap mmap at 16GB "##;