Increase database connection cache size
This commit is contained in:
parent
70cf483fe2
commit
f13950590e
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue