[PR #15087] [MERGED] Optimize WhereReferencedItemMultipleTypes filtering #14233

Closed
opened 2026-02-07 07:26:35 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/15087
Author: @theguymadmax
Created: 10/21/2025
Status: Merged
Merged: 10/24/2025
Merged by: @crobibero

Base: release-10.11.zHead: fix-artist-query


📝 Commits (1)

📊 Changes

2 files changed (+4 additions, -3 deletions)

View changed files

📝 Jellyfin.Server.Implementations/Item/BaseItemRepository.cs (+1 -1)
📝 src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinQueryHelperExtensions.cs (+3 -2)

📄 Description

Changes

  • Use the OneOrManyExpressionBuilder for the type filter
  • Applied the type filter .Where(typeFilter) before the join operation

Other changes:

  • Update ExcludeArtistIds filter to check both ItemValueType.Artist and ItemValueType.AlbumArtist

Issues

Fixes #15111
Fixes issue reported in 15079


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/15087 **Author:** [@theguymadmax](https://github.com/theguymadmax) **Created:** 10/21/2025 **Status:** ✅ Merged **Merged:** 10/24/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.11.z` ← **Head:** `fix-artist-query` --- ### 📝 Commits (1) - [`33bb7b2`](https://github.com/jellyfin/jellyfin/commit/33bb7b2e0adb7b40c9895a71be6db2d3e69d826d) Optimize artist query ### 📊 Changes **2 files changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server.Implementations/Item/BaseItemRepository.cs` (+1 -1) 📝 `src/Jellyfin.Database/Jellyfin.Database.Implementations/JellyfinQueryHelperExtensions.cs` (+3 -2) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> - Use the `OneOrManyExpressionBuilder` for the type filter - Applied the type filter .`Where(typeFilter)` before the join operation Other changes: - Update `ExcludeArtistIds` filter to check both `ItemValueType.Artist` and `ItemValueType.AlbumArtist` **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes #15111 Fixes issue reported in [15079](https://github.com/jellyfin/jellyfin/issues/15079) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:26:35 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14233