Changes loading from DB to use SetAllFastSorted since it's already sorted by level + sort order

This commit is contained in:
Shannon
2019-08-15 23:59:46 +10:00
parent 3d56e45266
commit bbd6e1150e
2 changed files with 7 additions and 9 deletions

View File

@@ -9,12 +9,12 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
internal interface IDataSource
{
ContentNodeKit GetContentSource(IScope scope, int id);
IEnumerable<ContentNodeKit> GetAllContentSources(IScope scope); // must order by level
IEnumerable<ContentNodeKit> GetAllContentSources(IScope scope); // must order by level, sortOrder
IEnumerable<ContentNodeKit> GetBranchContentSources(IScope scope, int id); // must order by level, sortOrder
IEnumerable<ContentNodeKit> GetTypeContentSources(IScope scope, IEnumerable<int> ids);
ContentNodeKit GetMediaSource(IScope scope, int id);
IEnumerable<ContentNodeKit> GetAllMediaSources(IScope scope); // must order by level
IEnumerable<ContentNodeKit> GetAllMediaSources(IScope scope); // must order by level, sortOrder
IEnumerable<ContentNodeKit> GetBranchMediaSources(IScope scope, int id); // must order by level, sortOrder
IEnumerable<ContentNodeKit> GetTypeMediaSources(IScope scope, IEnumerable<int> ids);
}