mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Use single task query executor
- better performance? - fixes race condition in RoomTrackingLiveData (data not refreshed)
This commit is contained in:
parent
4c96cb0511
commit
ea0d888764
1 changed files with 1 additions and 2 deletions
|
@ -97,8 +97,7 @@ public abstract class DB extends RoomDatabase {
|
|||
public abstract DaoLog log();
|
||||
|
||||
private static DB sInstance;
|
||||
private static final ExecutorService executor = Executors.newFixedThreadPool(
|
||||
Runtime.getRuntime().availableProcessors(), Helper.backgroundThreadFactory);
|
||||
private static final ExecutorService executor = Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
|
||||
|
||||
private static final String DB_NAME = "fairemail";
|
||||
private static final long VACUUM_INTERVAL = 24 * 3600 * 1000L;
|
||||
|
|
Loading…
Reference in a new issue