From e36c791c53b715ff30ef0a8b68ba807a0b98ff49 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Thu, 2 Feb 2023 18:15:14 -0600 Subject: [PATCH] improvement: prevent spilling temp indexes to disk --- 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 3b6f608..61f8524 100644 --- a/src/repo/sqlite_migration.rs +++ b/src/repo/sqlite_migration.rs @@ -16,6 +16,7 @@ pub const STARTUP_SQL: &str = r##" PRAGMA main.synchronous = NORMAL; PRAGMA foreign_keys = ON; PRAGMA journal_size_limit = 32768; +PRAGMA temp_store = 2; -- use memory, not temp files pragma mmap_size = 17179869184; -- cap mmap at 16GB "##;