aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/IPeopleRepository.cs
AgeCommit message (Collapse)Author
4 daysBatch people lookups when building item DTOsbrandon
GetBaseItemDtos already batch fetches user data, child counts, played counts and artists before its per item loop, but AttachPeople still ran one GetPeople query per item. Rendering a page of items (for example a large playlist) fired one extra query per row. Add GetPeopleByItems to IPeopleRepository, which reads every requested item in a single query over the people mapping table and returns full PersonInfo (role, type and sort order) grouped by item id. GetBaseItemDtos prefetches this once when the People field is requested and passes it into AttachPeople, which reads from the batch instead of querying per item. The single item GetBaseItemDto path keeps its existing per item behaviour when no batch is supplied. Adds a DtoService test asserting people resolve from the batch and the per item GetPeople is never called.
2026-05-31Fix similarity (#16942)Tim Eisele
Fix similarity
2026-05-15Fix movie recommendationsShadowghost
2026-05-04fix person TotalRecordCount when limit is applieddkanada
2024-10-09Apply suggestions from code reviewJPVenson
Co-authored-by: Cody Robibero <cody@robibe.ro>
2024-10-09Naming refactoring and WIP porting of new interface repositoriesJPVenson