sqldroid

Disabling sqlite Write-Ahead logging in Android Pie

白昼怎懂夜的黑 提交于 2019-12-30 06:19:29
问题 In Android Pie sqlite Write-Ahead logging (WAL) has been enabled by default. This is causing errors for my existing code only in Pie devices. I have been unable to turn off WAL successfully using SQLiteDatabase.disableWriteAheadLogging() or PRAGMA journal_mode due to the way I access the database. I would like to disable WAL completely with an Android setting called db_compatibility_wal_supported : Compatibility WAL (Write-Ahead Logging) for Apps Does anyone know how to configure this? I don

Disabling sqlite Write-Ahead logging in Android Pie

和自甴很熟 提交于 2019-11-30 19:32:40
In Android Pie sqlite Write-Ahead logging (WAL) has been enabled by default. This is causing errors for my existing code only in Pie devices. I have been unable to turn off WAL successfully using SQLiteDatabase.disableWriteAheadLogging() or PRAGMA journal_mode due to the way I access the database. I would like to disable WAL completely with an Android setting called db_compatibility_wal_supported : Compatibility WAL (Write-Ahead Logging) for Apps Does anyone know how to configure this? I don't know if this file can be altered programmatically at startup or if it is changed manually. Further