From f85c1846816f98667bfe7e092d87bf9c8b3e74bb Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 12 May 2020 19:42:04 +0200 Subject: [PATCH] Reduced number of query threads to 2 --- 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 b6bd8f4a1a..ad4afc94c5 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -107,7 +107,7 @@ public abstract class DB extends RoomDatabase { private static DB sInstance; private static final ExecutorService executor = - Helper.getBackgroundExecutor(4, "query"); // AndroidX default thread count + Helper.getBackgroundExecutor(2, "query"); // AndroidX default thread count private static final String DB_NAME = "fairemail"; private static final int DB_CHECKPOINT = 1000; // requery/sqlite-android default