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:
parent
0a8a412238
commit
616b77c10f
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue