overlay: configure SQLite to operate in MEMORY mode

This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I50d9b3d9f019772fedc7066675249116d5e441e4
This commit is contained in:
Jesse Chan 2018-05-04 23:36:32 -07:00 committed by Giammarco Senatore
parent cdd81c7801
commit 224544bcb7
No known key found for this signature in database
GPG key ID: 661348FC1E144F04

View file

@ -486,4 +486,9 @@
<string-array name="config_biometric_sensors" translatable="false" >
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
</string-array>
<!-- SQLite -->
<string name="db_default_journal_mode">MEMORY</string>
<string name="db_default_sync_mode">OFF</string>
<string name="db_wal_sync_mode">OFF</string>
</resources>