From 2e2f01e4804fc245023b270d41aa017ae22b533c Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov Date: Fri, 27 Apr 2018 17:41:49 -0700 Subject: [PATCH] Use NORMAL synchronous mode for WAL journal mode When synchronous is NORMAL (1), the SQLite database engine will still sync at the most critical moments, but less often than in FULL mode. With this change, the number of writes is reduced by 50%, more than 5x improvement in write performance, read performance is the same. Test: Manual + SQLiteDatabaseTest Bug: 76033286 Change-Id: I13526962bbaeae028a9c6cb668aa9f94bbc2a44d --- core/res/res/values/config.xml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 62440880eb261..d95ae08460b77 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1826,12 +1826,16 @@ FULL - FULL + NORMAL