From bf73ee3923f6a1ddd0420bb3f6ba21128cdf1fe3 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Oct 2021 12:52:53 +0200 Subject: [PATCH] Set default sqlite cache size to 7% --- app/src/main/java/eu/faircode/email/DB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 1109155615..73e7173882 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -121,7 +121,7 @@ public abstract class DB extends RoomDatabase { private static DB sInstance; static final int DEFAULT_QUERY_THREADS = 4; // AndroidX default thread count: 4 - static final int DEFAULT_CACHE_SIZE = 5; // percentage + static final int DEFAULT_CACHE_SIZE = 7; // percentage of memory class private static final String DB_NAME = "fairemail"; private static final int DB_CHECKPOINT = 1000; // requery/sqlite-android default