Set query and fetch executors to low priority again

This commit is contained in:
M66B 2019-07-18 13:01:01 +02:00
parent c14af37a71
commit 3da3d14a92
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public abstract class DB extends RoomDatabase {
private static DB sInstance;
private static ExecutorService executor = Executors.newFixedThreadPool(
Runtime.getRuntime().availableProcessors(), Helper.foregroundThreadFactory);
Runtime.getRuntime().availableProcessors(), Helper.backgroundThreadFactory);
private static final String DB_NAME = "fairemail";

View File

@ -47,7 +47,7 @@ public class ViewModelMessages extends ViewModel {
private AdapterMessage.ViewType last = AdapterMessage.ViewType.UNIFIED;
private Map<AdapterMessage.ViewType, Model> models = new HashMap<>();
private ExecutorService executor = Executors.newCachedThreadPool(Helper.foregroundThreadFactory);
private ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
private static final int LOCAL_PAGE_SIZE = 100;
private static final int REMOTE_PAGE_SIZE = 10;