AlbumMappper::getForFile is not using an index #2444
Labels
1. to develop
Accepted and waiting to be taken care of
performances
Performances issues and optimisations
The following query does not seem ot use an index and do a full table scan on the albums table:
photos/lib/Album/AlbumMapper.php
Lines 138 to 146 in 2376b7d
From a brief look it should be possible to refactor it to query the oc_photos_albums_files first to then get only the albums using an inner join
The text was updated successfully, but these errors were encountered: