mirror of https://github.com/M66B/FairEmail.git
Increase sqlite cache size to 5M
This commit is contained in:
parent
88f5d85149
commit
a32fe222eb
|
@ -400,7 +400,6 @@ public abstract class DB extends RoomDatabase {
|
||||||
Log.i("Get PRAGMA " + pragma + "=" + (cursor.moveToNext() ? cursor.getString(0) : "?"));
|
Log.i("Get PRAGMA " + pragma + "=" + (cursor.moveToNext() ? cursor.getString(0) : "?"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BuildConfig.DEBUG) {
|
|
||||||
Log.i("Set PRAGMA cache_size=" + DB_CACHE_SIZE);
|
Log.i("Set PRAGMA cache_size=" + DB_CACHE_SIZE);
|
||||||
try (Cursor cursor = db.query("PRAGMA cache_size=" + DB_CACHE_SIZE + ";", null)) {
|
try (Cursor cursor = db.query("PRAGMA cache_size=" + DB_CACHE_SIZE + ";", null)) {
|
||||||
cursor.moveToNext(); // required
|
cursor.moveToNext(); // required
|
||||||
|
@ -409,7 +408,6 @@ public abstract class DB extends RoomDatabase {
|
||||||
try (Cursor cursor = db.query("PRAGMA cache_size;")) {
|
try (Cursor cursor = db.query("PRAGMA cache_size;")) {
|
||||||
Log.i("Get PRAGMA cache_size=" + (cursor.moveToNext() ? cursor.getInt(0) : "?"));
|
Log.i("Get PRAGMA cache_size=" + (cursor.moveToNext() ? cursor.getInt(0) : "?"));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (BuildConfig.DEBUG && false) {
|
if (BuildConfig.DEBUG && false) {
|
||||||
db.execSQL("DROP TRIGGER IF EXISTS `attachment_insert`");
|
db.execSQL("DROP TRIGGER IF EXISTS `attachment_insert`");
|
||||||
|
|
Loading…
Reference in New Issue