Prevent cursor memory allocation errors

This commit is contained in:
Marcel Bokhorst 2020-06-15 22:10:10 +02:00 committed by GitHub
parent 1d57cf7b6d
commit ea0d002bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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