Increase database connection cache size

This commit is contained in:
croneter 2018-12-09 17:19:16 +01:00
parent 70cf483fe2
commit f13950590e

View file

@ -407,6 +407,7 @@ def kodi_sql(media_type=None):
conn.execute('PRAGMA journal_mode=WAL;') conn.execute('PRAGMA journal_mode=WAL;')
except IOError: except IOError:
LOG.warn('PKC could NOT activate sqlite WAL mode, sync might be slow') LOG.warn('PKC could NOT activate sqlite WAL mode, sync might be slow')
conn.execute('PRAGMA cache_size = -8000;')
conn.execute('PRAGMA synchronous=NORMAL;') conn.execute('PRAGMA synchronous=NORMAL;')
# Use transactions # Use transactions
conn.execute('BEGIN') conn.execute('BEGIN')