Speed up albumPage

This commit is contained in:
Ade
2018-06-10 10:37:59 +12:00
parent 2b5b2bd506
commit 7230428a31
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -324,7 +324,7 @@
if (++x === 10) {
clearInterval(refreshInterval);
}
var sts = $("#artistname").text();
var sts = $("#artistname").text().trim();
if (wasLoading == true || sts == "Loading"){
location.reload();
$('#albumnamespinner').remove()
+7
View File
@@ -420,6 +420,13 @@ def dbcheck():
c.execute(
'CREATE INDEX IF NOT EXISTS tracks_artistid ON tracks(ArtistID ASC)')
# Speed up album page
c.execute('CREATE INDEX IF NOT EXISTS have_matched ON have(Matched ASC)')
c.execute('CREATE INDEX IF NOT EXISTS allalbums_albumid ON allalbums(AlbumID ASC)')
c.execute('CREATE INDEX IF NOT EXISTS alltracks_albumid ON alltracks(AlbumID ASC)')
c.execute('CREATE INDEX IF NOT EXISTS releases_albumid ON releases(ReleaseGroupID ASC)')
c.execute('CREATE INDEX IF NOT EXISTS descriptions_albumid ON descriptions(ReleaseGroupID ASC)')
try:
c.execute('SELECT IncludeExtras from artists')
except sqlite3.OperationalError: