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