1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 21:55:13 +00:00

Small improvements

This commit is contained in:
M66B 2020-02-01 11:40:29 +01:00
parent 0837c8622d
commit f26d8e44c5

View file

@ -110,9 +110,9 @@ public abstract class DB extends RoomDatabase {
Helper.getBackgroundExecutor(1, "query");
private static final String DB_NAME = "fairemail";
private static final int DB_CHECKPOINT = 100;
private static final int DB_CHECKPOINT = 1000; // requery/sqlite-android default
static final String[] DB_TABLES = new String[]{
private static final String[] DB_TABLES = new String[]{
"identity", "account", "folder", "message", "attachment", "operation", "contact", "certificate", "answer", "rule", "log"};
@Override
@ -179,7 +179,7 @@ public abstract class DB extends RoomDatabase {
.databaseBuilder(context, DB.class, DB_NAME)
.openHelperFactory(new RequerySQLiteOpenHelperFactory())
.setQueryExecutor(executor)
.setJournalMode(JournalMode.WRITE_AHEAD_LOGGING)
.setJournalMode(JournalMode.WRITE_AHEAD_LOGGING) // using the latest sqlite
.addCallback(new Callback() {
@Override
public void onOpen(@NonNull SupportSQLiteDatabase db) {