From f13950590e793d7c2c3ac21faca752761f1d331f Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 9 Dec 2018 17:19:16 +0100 Subject: [PATCH] Increase database connection cache size --- resources/lib/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index ccb51b83..0502f524 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -407,6 +407,7 @@ def kodi_sql(media_type=None): conn.execute('PRAGMA journal_mode=WAL;') except IOError: LOG.warn('PKC could NOT activate sqlite WAL mode, sync might be slow') + conn.execute('PRAGMA cache_size = -8000;') conn.execute('PRAGMA synchronous=NORMAL;') # Use transactions conn.execute('BEGIN')