aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2026-08-16 18:53:43 -0400
committerGitHub <noreply@github.com>2026-08-16 18:53:43 -0400
commitf97b7b120d0514509ec79a047d989d3ed2f968b2 (patch)
tree3b48e7a788c948bec24db609edd996eee6e8f566
parent4fe980f25b809bf339a9e72b857eb437f2bd250b (diff)
parent7c148c3c7c0a023a07162a232f243f5a06d1ec86 (diff)
Merge pull request #17655 from martin-77/fix/playlist-sql-variable-limitsHEADmaster
Fix large playlist persistence with WhereOneOrMany
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index ace97d191f..f6a725853d 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -238,6 +238,7 @@
- [elio42](https://github.com/elio42)
- [rwebster85](https://github.com/rwebster85)
- [Florin-Popescu](https://github.com/Florin-Popescu)
+ - [martin-77](https://github.com/martin-77)
# Emby Contributors
diff --git a/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs b/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs
index 3585f85c61..efff3457a3 100644
--- a/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs
+++ b/Jellyfin.Server.Implementations/Item/ItemPersistenceService.cs
@@ -538,7 +538,7 @@ public class ItemPersistenceService : IItemPersistenceService
var childIdsToCheck = resolvedChildren.Select(c => c.ChildId).Distinct().ToList();
var existingChildIds = childIdsToCheck.Count > 0
? context.BaseItems
- .Where(e => childIdsToCheck.Contains(e.Id))
+ .WhereOneOrMany(childIdsToCheck, e => e.Id)
.Select(e => e.Id)
.ToHashSet()
: [];