From 08b011ad077260952cfcef573be25f28441b214c Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 10 Sep 2022 19:18:57 -0500 Subject: [PATCH] feat: ensure that WAL is truncated after checkpoint --- src/schema.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/schema.rs b/src/schema.rs index 987b6dd..bc2b002 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -13,6 +13,7 @@ use std::time::Instant; pub const STARTUP_SQL: &str = r##" PRAGMA main.synchronous=NORMAL; PRAGMA foreign_keys = ON; +PRAGMA journal_size_limit=32768; pragma mmap_size = 536870912; -- 512MB of mmap "##;