From 588ce3a3908ecca12e9efc5aae97917ef4afe8a3 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 26 May 2021 16:24:44 +0200 Subject: [PATCH] Sqlite: Increase default maximum cache size The default maximum size is 2MB which is quite small for bigger transactions. Increasing it to 100MB will give sqlite enough memory so it doesn't need to swap that often. This is not important for reading because we use mmap. Change-Id: I9a07bbd8f1ce594e66b46936480d69b0fb8c3d84 Reviewed-by: Thomas Hartmann --- src/libs/3rdparty/sqlite/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/3rdparty/sqlite/config.h b/src/libs/3rdparty/sqlite/config.h index 19757d3f8e8..d386f34a5a6 100644 --- a/src/libs/3rdparty/sqlite/config.h +++ b/src/libs/3rdparty/sqlite/config.h @@ -82,3 +82,4 @@ #define SQLITE_ENABLE_PREUPDATE_HOOK 1 #define SQLITE_LIKE_DOESNT_MATCH_BLOBS 1 #define SQLITE_OMIT_AUTOINIT 1 +#define SQLITE_DEFAULT_CACHE_SIZE -100000