<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jellyfin/Emby.Server.Implementations/Dto/DtoService.cs, branch v12.0-rc5</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.b0n.dev/jellyfin/atom?h=v12.0-rc5</id>
<link rel='self' href='https://git.b0n.dev/jellyfin/atom?h=v12.0-rc5'/>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/'/>
<updated>2026-08-08T16:33:11Z</updated>
<entry>
<title>Address review on MediaSourceCount batching</title>
<updated>2026-08-08T16:33:11Z</updated>
<author>
<name>brandon</name>
<email>brandon@clinger.dev</email>
</author>
<published>2026-08-08T16:33:11Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=10d108a1f453c0972b3059e10bb9b13bbcb34f63'/>
<id>urn:sha1:10d108a1f453c0972b3059e10bb9b13bbcb34f63</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Batch alternate version detection in DtoService to remove MediaSourceCount N+1</title>
<updated>2026-08-08T02:51:45Z</updated>
<author>
<name>brandon</name>
<email>brandon@clinger.dev</email>
</author>
<published>2026-08-08T02:51:45Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=c091ffdc6b2d8d4dd6f439d056c561bae7bd9a18'/>
<id>urn:sha1:c091ffdc6b2d8d4dd6f439d056c561bae7bd9a18</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Batch people lookups when building item DTOs</title>
<updated>2026-08-07T15:59:17Z</updated>
<author>
<name>brandon</name>
<email>brandon@clinger.dev</email>
</author>
<published>2026-08-07T15:59:17Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=d6da6906a4b3426f05c5bf4ffe8bab4b2bc78ce8'/>
<id>urn:sha1:d6da6906a4b3426f05c5bf4ffe8bab4b2bc78ce8</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Reduce correlated subqueries to improve performance</title>
<updated>2026-07-23T18:50:06Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-23T09:52:26Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=9aa79682bab9a18f87b0c13c776a19e3eb357335'/>
<id>urn:sha1:9aa79682bab9a18f87b0c13c776a19e3eb357335</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleanup PreferEpisodeParentPoster)</title>
<updated>2026-07-09T10:07:13Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-09T10:07:13Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=38813f7d4288813ad8e7582a87d14daa6a129852'/>
<id>urn:sha1:38813f7d4288813ad8e7582a87d14daa6a129852</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove episode image override hack</title>
<updated>2026-07-09T09:54:18Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-09T09:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=853922443fdd56f6467349bbf7db5d0dc29f570e'/>
<id>urn:sha1:853922443fdd56f6467349bbf7db5d0dc29f570e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #17044 from Shadowghost/version-model-and-handling</title>
<updated>2026-07-05T20:21:02Z</updated>
<author>
<name>Cody Robibero</name>
<email>cody@robibe.ro</email>
</author>
<published>2026-07-05T20:21:02Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=6e728b009f0c622415a11d392198c1d8d61ff91f'/>
<id>urn:sha1:6e728b009f0c622415a11d392198c1d8d61ff91f</id>
<content type='text'>
Fixes for multi version handling</content>
</entry>
<entry>
<title>Fix review comments</title>
<updated>2026-07-02T06:49:11Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-07-02T06:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=38f1d9749ee67f18264937807b2f5882e1421557'/>
<id>urn:sha1:38f1d9749ee67f18264937807b2f5882e1421557</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix Book collections scanning all items</title>
<updated>2026-06-26T16:25:58Z</updated>
<author>
<name>Marc Brooks</name>
<email>IDisposable@gmail.com</email>
</author>
<published>2026-01-06T00:41:34Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=70b45893829feddff5f5e5f89e9087b395454c08'/>
<id>urn:sha1:70b45893829feddff5f5e5f89e9087b395454c08</id>
<content type='text'>
Added static method GetBaseItemKindsForCollectionType in ItemsController (moved from ContentFolderImageProvider to be shared)

Added AudioBook to GetRepresentativeItemTypes for CollectionType.books for consistency

Added GetBooks to GetUserItems for CollectionType.books which gets BaseItemKind.Book and BaseItemKind.AudioBook

Move GetBaseItemKindsForCollectionType to DtoExtensions

Cleaned up the missing null checks and used new collection expressions.
Associate Person to Book and AudioBook for related items.
</content>
</entry>
<entry>
<title>Coalesce alternate-version progress onto primary in resume filter</title>
<updated>2026-06-09T21:23:03Z</updated>
<author>
<name>Shadowghost</name>
<email>Ghost_of_Stone@web.de</email>
</author>
<published>2026-06-09T21:23:03Z</published>
<link rel='alternate' type='text/html' href='https://git.b0n.dev/jellyfin/commit/?id=0874a26131a5a1e9d62fb7231acbaf9eb921b5c8'/>
<id>urn:sha1:0874a26131a5a1e9d62fb7231acbaf9eb921b5c8</id>
<content type='text'>
</content>
</entry>
</feed>
