Merge pull request #17655 from martin-77/fix/playlist-sql-variable-limits
Fix large playlist persistence with WhereOneOrMany
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
: [];
|
||||
|
||||
Reference in New Issue
Block a user