1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Set WAL checkpoint interval to 100

https://www.sqlite.org/pragma.html#pragma_wal_checkpoint
This commit is contained in:
M66B 2020-01-18 11:39:46 +01:00
parent 0a8a412238
commit 616b77c10f

View file

@ -110,6 +110,8 @@ public abstract class DB extends RoomDatabase {
sInstance = migrate(acontext, getBuilder(acontext));
sInstance.getOpenHelper().getWritableDatabase().execSQL("PRAGMA wal_autocheckpoint=100;");
// https://www.sqlite.org/lang_vacuum.html
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean vacuum = prefs.getBoolean("vacuum", false);