mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 17:41:29 +00:00
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. |
||
|---|---|---|
| .. | ||
| Resolvers | ||
| Search | ||
| SimilarItems | ||
| Validators | ||
| CoreResolutionIgnoreRule.cs | ||
| DotIgnoreIgnoreRule.cs | ||
| ExternalDataManager.cs | ||
| IgnorePatterns.cs | ||
| KeyframeManager.cs | ||
| LibraryManager.cs | ||
| LiveStreamHelper.cs | ||
| MediaSourceManager.cs | ||
| MediaStreamSelector.cs | ||
| MusicManager.cs | ||
| PathExtensions.cs | ||
| PathManager.cs | ||
| ResolverHelper.cs | ||
| SplashscreenPostScanTask.cs | ||
| UserDataManager.cs | ||
| UserViewManager.cs | ||