diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-09-07 17:53:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-07 17:53:31 -0400 |
| commit | 85ebd83bddbab0cee93028f29753506f02354706 (patch) | |
| tree | 6b7302bf8222ecf056733cea7c87110c3a371952 /MediaBrowser.Controller/Persistence | |
| parent | 882faf2b2da329ec09077f5a18cf743289ea7e1f (diff) | |
| parent | 2644163f57a6690366c3106faa392afb72b1e55a (diff) | |
Merge pull request #17821 from Shadowghost/more-counts
Expose optimized ItemCounts for byName items
Diffstat (limited to 'MediaBrowser.Controller/Persistence')
| -rw-r--r-- | MediaBrowser.Controller/Persistence/IItemCountService.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Persistence/IItemCountService.cs b/MediaBrowser.Controller/Persistence/IItemCountService.cs index 8ddf93e3e0..14c422cb60 100644 --- a/MediaBrowser.Controller/Persistence/IItemCountService.cs +++ b/MediaBrowser.Controller/Persistence/IItemCountService.cs @@ -37,6 +37,18 @@ public interface IItemCountService ItemCounts GetItemCountsForNameItem(BaseItemKind kind, Guid id, BaseItemKind[] relatedItemKinds, InternalItemsQuery accessFilter); /// <summary> + /// 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 id. + /// </summary> + /// <param name="kind">The kind of the name items.</param> + /// <param name="ids">The IDs of the name items.</param> + /// <param name="relatedItemKinds">The item kinds to count.</param> + /// <param name="accessFilter">A pre-configured query with user access filtering settings.</param> + /// <returns>The item counts of each requested id.</returns> + Dictionary<Guid, ItemCounts> GetItemCountsForNameItems(BaseItemKind kind, IReadOnlyList<Guid> ids, BaseItemKind[] relatedItemKinds, InternalItemsQuery accessFilter); + + /// <summary> /// Gets the count of played items that are descendants of the specified ancestor. /// </summary> /// <param name="filter">The query filter containing user access settings.</param> |
