Increases cache size to up to 40MB

This commit is contained in:
Vitor Pamplona
2025-12-27 12:11:31 -05:00
parent 273d5feb94
commit f9582bb007
@@ -82,6 +82,9 @@ class SQLiteEventStore(
// The DB can be corrupted if the OS is shutdown before sync, which generally
// doesn't happen on Android
db.execSQL("PRAGMA synchronous = OFF")
// Cache to keep larger parts of the index in memory
db.execSQL("PRAGMA cache_size=10000;"); // Cache 10,000 pages
}
override fun onCreate(db: SQLiteDatabase) {