Set WAL checkpoint interval to 100

https://www.sqlite.org/pragma.html#pragma_wal_checkpoint
pull/172/head
M66B 5 years ago
parent 0a8a412238
commit 616b77c10f

@ -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);

Loading…
Cancel
Save