Optimize artist query (#15087)

This commit is contained in:
theguymadmax
2025-10-23 18:37:29 -04:00
committed by GitHub
parent 175ee12bbc
commit a5bc4524d8
2 changed files with 4 additions and 3 deletions

View File

@@ -2046,7 +2046,7 @@ public sealed class BaseItemRepository
if (filter.ExcludeArtistIds.Length > 0)
{
baseQuery = baseQuery.WhereReferencedItem(context, ItemValueType.Artist, filter.ExcludeArtistIds, true);
baseQuery = baseQuery.WhereReferencedItemMultipleTypes(context, [ItemValueType.Artist, ItemValueType.AlbumArtist], filter.ExcludeArtistIds, true);
}
if (filter.GenreIds.Count > 0)