mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Increase sqlite cache size to 5M
This commit is contained in:
@@ -400,15 +400,13 @@ public abstract class DB extends RoomDatabase {
|
||||
Log.i("Get PRAGMA " + pragma + "=" + (cursor.moveToNext() ? cursor.getString(0) : "?"));
|
||||
}
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
Log.i("Set PRAGMA cache_size=" + DB_CACHE_SIZE);
|
||||
try (Cursor cursor = db.query("PRAGMA cache_size=" + DB_CACHE_SIZE + ";", null)) {
|
||||
cursor.moveToNext(); // required
|
||||
}
|
||||
Log.i("Set PRAGMA cache_size=" + DB_CACHE_SIZE);
|
||||
try (Cursor cursor = db.query("PRAGMA cache_size=" + DB_CACHE_SIZE + ";", null)) {
|
||||
cursor.moveToNext(); // required
|
||||
}
|
||||
|
||||
try (Cursor cursor = db.query("PRAGMA cache_size;")) {
|
||||
Log.i("Get PRAGMA cache_size=" + (cursor.moveToNext() ? cursor.getInt(0) : "?"));
|
||||
}
|
||||
try (Cursor cursor = db.query("PRAGMA cache_size;")) {
|
||||
Log.i("Get PRAGMA cache_size=" + (cursor.moveToNext() ? cursor.getInt(0) : "?"));
|
||||
}
|
||||
|
||||
if (BuildConfig.DEBUG && false) {
|
||||
|
||||
Reference in New Issue
Block a user