From ba70ad9b41dd632783921327cb748ae930c80688 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 30 Oct 2020 18:40:47 +1100 Subject: [PATCH] sqlite storage: Set mmap_size to a very large size Seems to fall back to ~2GiB on my system. --- storage/sqlite/sqlite-storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/sqlite/sqlite-storage.go b/storage/sqlite/sqlite-storage.go index 771c3452..75520e77 100644 --- a/storage/sqlite/sqlite-storage.go +++ b/storage/sqlite/sqlite-storage.go @@ -33,7 +33,7 @@ func initConn(conn conn, wal bool) error { return err } } - err = sqlitex.ExecTransient(conn, `pragma mmap_size=1000000000`, nil) + err = sqlitex.ExecTransient(conn, `pragma mmap_size=1000000000000`, nil) if err != nil { return err }