Reduced sqlite default cache size

This commit is contained in:
M66B 2021-10-14 07:10:28 +02:00
parent a3a53965c0
commit 3db56f49ea
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public abstract class DB extends RoomDatabase {
private static DB sInstance;
static final int DEFAULT_QUERY_THREADS = 4; // AndroidX default thread count: 4
static final int DEFAULT_CACHE_SIZE = 10; // percentage
static final int DEFAULT_CACHE_SIZE = 5; // percentage
private static final String DB_NAME = "fairemail";
private static final int DB_CHECKPOINT = 1000; // requery/sqlite-android default