aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/LinkedChildrenService.cs
AgeCommit message (Collapse)Author
2026-08-11Fix FindArtiststheguymadmax
2026-08-10Fix master buildShadowghost
2026-08-08Use WhereOneOrMany helper for the alternate version id filterbrandon
Filter the parent ids with the WhereOneOrMany query helper instead of a raw Contains so the id list is wrapped in EF.Parameter and EF Core reuses one compiled query plan across calls, matching how the rest of the item queries build their id filters.
2026-08-08Address review on MediaSourceCount batchingbrandon
Rename GetItemsWithAlternateVersions to GetItemIdsWithAlternateVersions across the interfaces and implementations since it returns ids. Return the hashset straight from the query instead of materializing an array first. Rename the DtoService guard to mayHaveAlternateVersions and invert it so the computed path is the explicit case. Assert the media source count value in the batch skip test and add a test covering an item that is in the returned set still resolving to the correct count.
2026-08-07Batch alternate version detection in DtoService to remove MediaSourceCount N+1brandon
Browsing a page of videos with the MediaSourceCount field ran one alternate version query per item, each opening a fresh DbContext. On a large library that turned a single page into hundreds of sequential round trips and made the Items endpoint take tens of seconds while holding a request thread the whole time. Detect which videos own alternate versions once per page with a single query, mirroring the existing people batch. Videos absent from that set have a single media source, so the per item lookups are skipped for the common case. Behavior is unchanged: a video with no alternates already resolved to a count of one. Adds a regression test asserting the count resolves from the batch and the per item lookups are never called.
2026-07-23Allow duplicate LinkedChildren for PlaylistsShadowghost
2026-05-29Add a collection API for `Included In` feature (#15516)Sam Xie
Add a collection API for `Included In` feature
2026-05-09Fix artist duplicatesShadowghost
2026-04-26Apply review suggestionsShadowghost
2026-04-26Use AsNoTracking() when only readingShadowghost
2026-03-07Split BaseItemRepository and IItemRepositoryShadowghost