diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-07-20 08:17:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-20 08:17:38 +0200 |
| commit | 236db6d2f6332373759c309c5ec722b1e416aa59 (patch) | |
| tree | c30d7e9ead7a961f49365c581fcb88a8f722f42f /Emby.Server.Implementations/Library/UserDataManager.cs | |
| parent | 181c057cb8cca857585505f010034e462b9b094e (diff) | |
| parent | cdf7ce0fc4504eda29a2b4060fbe1fe628e2ee0a (diff) | |
Merge pull request #17365 from Shadowghost/fix-resume-perf
Fix Resume query performance
Diffstat (limited to 'Emby.Server.Implementations/Library/UserDataManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserDataManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/UserDataManager.cs b/Emby.Server.Implementations/Library/UserDataManager.cs index 40cd2bb69c..19b42a3a11 100644 --- a/Emby.Server.Implementations/Library/UserDataManager.cs +++ b/Emby.Server.Implementations/Library/UserDataManager.cs @@ -291,8 +291,8 @@ namespace Emby.Server.Implementations.Library { using var dbContext = _repository.CreateDbContext(); withLocalAlternates = dbContext.LinkedChildren - .Where(lc => lc.ChildType == Jellyfin.Database.Implementations.Entities.LinkedChildType.LocalAlternateVersion - && localProbeIds.Contains(lc.ParentId)) + .Where(lc => lc.ChildType == Jellyfin.Database.Implementations.Entities.LinkedChildType.LocalAlternateVersion) + .WhereOneOrMany(localProbeIds, lc => lc.ParentId) .Select(lc => lc.ParentId) .Distinct() .ToHashSet(); |
