diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-08-07 21:43:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-07 21:43:21 -0400 |
| commit | 247ee406a986933d6b006a55605bb1881588f35d (patch) | |
| tree | 07203c8d1af51845fb830b53ed9ce6f86fae1a99 /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | 2218f2931c5ae2f2c7c676d321c9d6803f066782 (diff) | |
| parent | d6da6906a4b3426f05c5bf4ffe8bab4b2bc78ce8 (diff) | |
Merge pull request #17571 from obiwantoby/perf/batch-people-dto
Batch people lookups when building item DTOs
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 5db3b80386..19371f68d7 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -3537,6 +3537,12 @@ namespace Emby.Server.Implementations.Library return _peopleRepository.GetPeopleNamesByItems(itemIds, personTypes); } + /// <inheritdoc/> + public IReadOnlyDictionary<Guid, IReadOnlyList<PersonInfo>> GetPeopleByItems(IReadOnlyList<Guid> itemIds) + { + return _peopleRepository.GetPeopleByItems(itemIds); + } + public void UpdatePeople(BaseItem item, List<PersonInfo> people) { UpdatePeopleAsync(item, people, CancellationToken.None).GetAwaiter().GetResult(); |
