aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
AgeCommit message (Collapse)Author
41 hoursMerge pull request #17821 from Shadowghost/more-countsCody Robibero
Expose optimized ItemCounts for byName items
46 hoursCount distinct items for byName ItemCounts and batch every kindShadowghost
2 daysExpose optimized ItemCounts for byName itemsShadowghost
3 daysShare played state across alternate versionsShadowghost
3 daysMerge pull request #17762 from Shadowghost/fix-scan-memory-leakCody Robibero
Bound change batches during a scan; keep ffprobe and image saves from failing
7 daysavoid correlated item value name queriesFelix Förtsch
8 daysTreat an item deleted mid-save as a no-op when saving its imagesShadowghost
8 daysavoid correlated legacy item value filter queriesFelix Förtsch
The legacy filter queries projected ItemValue before grouping tags and genres. EF Core translated that shape into duplicated correlated aggregates, causing multi-minute requests for libraries with many distinct values and blocking unrelated SQLite-backed API calls. Join ItemValuesMap directly to ItemValues before grouping. This preserves type and item filtering, clean-value grouping, minimum-value selection and ordering while producing one aggregate query. Add an in-memory SQLite regression test for result semantics and both SQL shapes.
9 daysMerge pull request #17752 from Shadowghost/fix-linkedchildren-recursiveCody Robibero
Fix recursive handling for LinkedChildren
9 daysMerge pull request #17724 from Shadowghost/fix-by-name-item-countsCody Robibero
Fix item counts on the by-name endpoints
9 daysFix recursive handling for LinkedChildrenShadowghost
11 daysCount a season's episodes by the season they belong toShadowghost
13 daysFix By-Name item count handlingShadowghost
2026-08-25Merge pull request #17715 from Shadowghost/fix-people-cleanupCody Robibero
Delete credits nothing maps to and bound item-by-name folder names
2026-08-25Delete a credit once no item maps to it any moreShadowghost
2026-08-25Order IsPlayed and IsUnplayed by the played state the filter reportsPiotr Niełacny
Ordering mapped both keys to the item's own stored UserData row. Folders do not have one: a series, season or box set counts as played when no descendant is left unplayed, which is what the isPlayed filter and the DTO both report. A mixed library therefore sorted every series and box set into the unplayed group, and a query could filter and sort by two different notions of "played". Extract the filter's predicate into BuildIsPlayedFilter and route both sort keys through it so the two cannot drift apart again.
2026-08-22Merge remote-tracking branch 'upstream/master' into fix-series-mergingShadowghost
2026-08-22Merge pull request #17700 from Shadowghost/better-people-resolutionCody Robibero
Look up people by item via the credit map instead of a full scan
2026-08-22Merge pull request #17607 from Shadowghost/optimize-db-helper-memoryCody Robibero
Optimize query helper memory
2026-08-22Merge pull request #17678 from theguymadmax/fix-mixed-latest-itemsCody Robibero
Fix latest items for mixed libraries
2026-08-22Look up people by item via the credit map instead of a full scanShadowghost
2026-08-22Multiple fixes and improvementsShadowghost
Co-Authored-By: Cody Robibero <cody@robibe.ro>
2026-08-22Merge remote-tracking branch 'upstream/master' into optimize-db-helper-memoryShadowghost
# Conflicts: # src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/JellyfinDbModelSnapshot.cs
2026-08-21Use WhereOneOrManyShadowghost
2026-08-21Fix series merging leaking across libraries and under-counting merged childrenShadowghost
2026-08-20Stop user updates from orphaning permission and preference rows (#17645)Tim Eisele
* Stop user updates from orphaning permission and preference rows * Make UserId non-nullable * Remove unnecessary ToList * Update Jellyfin.Server.Implementations/Users/UserManager.cs Co-authored-by: Claus Vium <cvium@users.noreply.github.com> --------- Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2026-08-19Fix latest items for mixed librariestheguymadmax
2026-08-18Prevent orphaned user permissions and preferences (#17643)m0g3r
Prevent orphaned user permissions and preferences
2026-08-17Merge pull request #17658 from martin-77/fix/child-count-sql-variable-limitCody Robibero
Fix SQLite variable limit in child count batches
2026-08-17Fix SQLite variable limit in child count batchesmartin-77
2026-08-16Fix large playlist persistencemartin-77
2026-08-14Count alternate versions in the media filters and align filter conditionsShadowghost
2026-08-11Fix FindArtiststheguymadmax
2026-08-10Fix master buildShadowghost
2026-08-10Merge pull request #17576 from obiwantoby/perf/batch-mediasourcecount-dtoCody Robibero
Bugfix: #17547 | Batching MediaSourceCount into one call
2026-08-10Merge pull request #17597 from theguymadmax/fix-people-filteringCody Robibero
Fix PersonTypes not applied when filtering by person
2026-08-10Merge pull request #17588 from TOomaAh/fix/is-airing-filterCody Robibero
fix: correct IsAiring negation to exclude airing items
2026-08-10Merge pull request #17563 from Shadowghost/cleanup-sql-helpersCody Robibero
Cleanup and simplify query helpers
2026-08-10Fix PersonTypes not applied when filtering by persontheguymadmax
2026-08-09fix: correct IsAiring negation to exclude airing itemsTOomaAh
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-08-07Merge pull request #17571 from obiwantoby/perf/batch-people-dtoCody Robibero
Batch people lookups when building item DTOs
2026-08-07Merge pull request #17541 from vdatanet/fix/byname-total-record-countCody Robibero
Fix by-name endpoints reporting TotalRecordCount=0 next to a populated Items array
2026-08-07Batch 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-08-06Cleanup and simplify query helpersShadowghost
2026-08-06Move the deletion of old related info to just before the saveMarc Brooks
This makes the deletion of BaseItemProviders, BaseItemImageInfos, and BaseItemMetadataFields happen in batch as a contiguous block so the lock isn't held across items, just before the bulk SaveChanges.
2026-08-05Speed up search for existing item valuesMarc Brooks
Replace the O(n²) array .First scan with a dictionary lookup
2026-08-05Use a HashSet for existing itemsMarc Brooks
Makes the test O(log n)