Adds configuration for document and media hybrid cache seed batch size (#19894)
Adds configuration for document and media hybrid cache seed batch size.
This commit is contained in:
@@ -195,8 +195,7 @@ internal sealed class DocumentCacheService : IDocumentCacheService
|
||||
sw.Start();
|
||||
#endif
|
||||
|
||||
const int GroupSize = 100;
|
||||
foreach (IEnumerable<Guid> group in SeedKeys.InGroupsOf(GroupSize))
|
||||
foreach (IEnumerable<Guid> group in SeedKeys.InGroupsOf(_cacheSettings.DocumentSeedBatchSize))
|
||||
{
|
||||
var uncachedKeys = new HashSet<Guid>();
|
||||
foreach (Guid key in group)
|
||||
|
||||
@@ -158,8 +158,7 @@ internal sealed class MediaCacheService : IMediaCacheService
|
||||
sw.Start();
|
||||
#endif
|
||||
|
||||
const int GroupSize = 100;
|
||||
foreach (IEnumerable<Guid> group in SeedKeys.InGroupsOf(GroupSize))
|
||||
foreach (IEnumerable<Guid> group in SeedKeys.InGroupsOf(_cacheSettings.MediaSeedBatchSize))
|
||||
{
|
||||
var uncachedKeys = new HashSet<Guid>();
|
||||
foreach (Guid key in group)
|
||||
|
||||
Reference in New Issue
Block a user