The Free Software Media System - Server Backend & API
Merge remote-tracking branch 'upstream/master' into perf-rebased
Shadowghost24a0df9a39f1
diff --cc Jellyfin.Server.Implementations/Item/PeopleRepository.csindex e394d9d05e,ad9953d1b6..05864dbc35--- a/Jellyfin.Server.Implementations/Item/PeopleRepository.cs+++ b/Jellyfin.Server.Implementations/Item/PeopleRepository.cs@@@ -62,9 -62,14 +62,14 @@@ public class PeopleRepository(IDbContexusing var context = _dbProvider.CreateDbContext();var dbQuery = TranslateQuery(context.Peoples.AsNoTracking(), context, filter).Select(e => e.Name).Distinct();+ if (filter.StartIndex.HasValue && filter.StartIndex > 0)+ {+ dbQuery = dbQuery.Skip(filter.StartIndex.Value);+ }+if (filter.Limit > 0){- dbQuery = dbQuery.Take(filter.Limit);+ dbQuery = dbQuery.OrderBy(e => e).Take(filter.Limit);}return dbQuery.ToArray();