Fix OperationalError: Database is locked and heavily speed up sync
This commit is contained in:
parent
9c3c8b0d35
commit
8bffc5a30f
1 changed files with 3 additions and 1 deletions
|
@ -474,7 +474,9 @@ def kodi_sql(media_type=None):
|
|||
db_path = v.DB_TEXTURE_PATH
|
||||
else:
|
||||
db_path = v.DB_VIDEO_PATH
|
||||
return connect(db_path, timeout=60.0)
|
||||
conn = connect(db_path, timeout=5.0)
|
||||
conn.execute('PRAGMA journal_mode=WAL')
|
||||
return conn
|
||||
|
||||
|
||||
def create_actor_db_index():
|
||||
|
|
Loading…
Reference in a new issue