1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Use four query executors

This commit is contained in:
M66B 2020-04-26 09:52:09 +02:00
parent 3e96e50aff
commit c6965b19ea

View file

@ -108,7 +108,7 @@ public abstract class DB extends RoomDatabase {
private static DB sInstance;
private static final ExecutorService executor =
Helper.getBackgroundExecutor(1, "query");
Helper.getBackgroundExecutor(4, "query"); // AndroidX default thread count
private static final String DB_NAME = "fairemail";
private static final int DB_CHECKPOINT = 1000; // requery/sqlite-android default