From 2644163f57a6690366c3106faa392afb72b1e55a Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 7 Sep 2026 18:39:59 +0200 Subject: Count distinct items for byName ItemCounts and batch every kind --- MediaBrowser.Controller/Library/ILibraryManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index 382559384a..ac6df54949 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -760,8 +760,9 @@ namespace MediaBrowser.Controller.Library ItemCounts GetItemCountsForNameItem(BaseItemKind kind, Guid id, BaseItemKind[] relatedItemKinds, User? user); /// - /// Gets item counts for several "by-name" items of the same kind in one query, instead of - /// one query per item. + /// Gets item counts for several "by-name" items of the same kind. Kinds keyed by a cleaned + /// item value - artists, genres and studios - are answered in one set of queries for the + /// whole batch; the rest fall back to one query per item. /// /// The kind of the name items. /// The IDs of the name items. -- cgit v1.2.3