diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-26 17:59:16 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-26 18:53:17 +0200 |
| commit | d19449e6a5d66bc37ade831dd96a85152e98a533 (patch) | |
| tree | 86327b2ba4594220e6a49df94a76ff93cb1dfafb /Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs | |
| parent | fc866a64e063c9f04df3fab9a00846501c8d2b13 (diff) | |
Use AsNoTracking() when only reading
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs b/Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs index 19afe04f01..4d27cae218 100644 --- a/Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs +++ b/Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs @@ -62,7 +62,9 @@ public class LinkedChildrenService : ILinkedChildrenService { using var dbContext = _dbProvider.CreateDbContext(); - var artists = dbContext.BaseItems.Where(e => e.Type == _itemTypeLookup.BaseItemKindNames[BaseItemKind.MusicArtist]!) + var artists = dbContext.BaseItems + .AsNoTracking() + .Where(e => e.Type == _itemTypeLookup.BaseItemKindNames[BaseItemKind.MusicArtist]!) .Where(e => artistNames.Contains(e.Name)) .ToArray(); |
