One db core executor

This commit is contained in:
M66B 2022-12-28 12:19:08 +01:00
parent bd92b4bc95
commit 773726594e
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ public abstract class DB extends RoomDatabase {
.databaseBuilder(context, DB.class, DB_NAME)
//.openHelperFactory(new RequerySQLiteOpenHelperFactory())
//.setQueryExecutor()
.setTransactionExecutor(Helper.getBackgroundExecutor(4, "db"))
.setTransactionExecutor(Helper.getBackgroundExecutor(1, 4, 3, "db"))
.setJournalMode(wal ? JournalMode.WRITE_AHEAD_LOGGING : JournalMode.TRUNCATE) // using the latest sqlite
.addCallback(new Callback() {
@Override