|
|
@ -143,10 +143,11 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onOpen(SQLiteDatabase db) {
|
|
|
|
public void onConfigure(SQLiteDatabase db) {
|
|
|
|
super.onOpen(db);
|
|
|
|
super.onConfigure(db);
|
|
|
|
// Loki - Enable write ahead logging mode and increase the cache size.
|
|
|
|
// Loki - Enable write ahead logging mode and increase the cache size.
|
|
|
|
// This should be disabled if we ever run into serious race condition bugs.
|
|
|
|
// This should be disabled if we ever run into serious race condition bugs.
|
|
|
|
|
|
|
|
db.enableWriteAheadLogging();
|
|
|
|
db.execSQL("PRAGMA cache_size = 10000");
|
|
|
|
db.execSQL("PRAGMA cache_size = 10000");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|