From 1cb3b64e4c19beb43564d1881b0c3b357da262af Mon Sep 17 00:00:00 2001 From: Drapersniper <27962761+drapersniper@users.noreply.github.com> Date: Thu, 19 Dec 2019 18:14:22 +0000 Subject: [PATCH] Thanks Sinbad Signed-off-by: Drapersniper <27962761+drapersniper@users.noreply.github.com> --- redbot/cogs/audio/playlists.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/redbot/cogs/audio/playlists.py b/redbot/cogs/audio/playlists.py index d6c5b54dd..af3495cc6 100644 --- a/redbot/cogs/audio/playlists.py +++ b/redbot/cogs/audio/playlists.py @@ -44,15 +44,9 @@ PRAGMA temp_store = 2; _PRAGMA_UPDATE_journal_mode = """ PRAGMA journal_mode = wal; """ -_PRAGMA_UPDATE_wal_autocheckpoint = """ -PRAGMA wal_autocheckpoint; -""" _PRAGMA_UPDATE_read_uncommitted = """ PRAGMA read_uncommitted = 1; """ -_PRAGMA_UPDATE_optimize = """ -PRAGMA optimize = 1; -""" _CREATE_TABLE = """ CREATE TABLE IF NOT EXISTS playlists ( @@ -173,7 +167,9 @@ VALUES ON CONFLICT (scope_type, playlist_id, scope_id) DO UPDATE SET - playlist_name = excluded.playlist_name, playlist_url = excluded.playlist_url, tracks = excluded.tracks; + playlist_name = excluded.playlist_name, + playlist_url = excluded.playlist_url, + tracks = excluded.tracks; """ @@ -207,12 +203,10 @@ class Database: self.cursor = self._database.cursor() self.cursor.execute(_PRAGMA_UPDATE_temp_store) self.cursor.execute(_PRAGMA_UPDATE_journal_mode) - self.cursor.execute(_PRAGMA_UPDATE_wal_autocheckpoint) self.cursor.execute(_PRAGMA_UPDATE_read_uncommitted) self.cursor.execute(_CREATE_TABLE) def close(self): - self.cursor.execute(_PRAGMA_UPDATE_optimize) self._database.close() @staticmethod