mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
* Speed up DbCmd_AllAlbums. A ton.
This commit is contained in:
parent
e2ab7d834b
commit
bc0e3810d7
@ -77,7 +77,7 @@ DatabaseCommand_AllAlbums::execForArtist( DatabaseImpl* dbi )
|
||||
}
|
||||
|
||||
filterToken = QString( "AND artist.id = file_join.artist AND file_join.track = track.id %1" ).arg( filtersql );
|
||||
tables = "artist, track, file, file_join";
|
||||
tables = "file, file_join, artist, track";
|
||||
}
|
||||
else
|
||||
tables = "file, file_join";
|
||||
@ -139,7 +139,7 @@ DatabaseCommand_AllAlbums::execForCollection( DatabaseImpl* dbi )
|
||||
|
||||
QString sql = QString(
|
||||
"SELECT DISTINCT album.id, album.name, album.artist, artist.name "
|
||||
"FROM album, file, file_join "
|
||||
"FROM file, file_join, album "
|
||||
"LEFT OUTER JOIN artist ON album.artist = artist.id "
|
||||
"WHERE file.id = file_join.file "
|
||||
"AND file_join.album = album.id "
|
||||
|
Loading…
x
Reference in New Issue
Block a user