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:
Andy Butland
2025-08-13 09:12:16 +01:00
committed by GitHub
parent 937f4b8122
commit 58cc7691a3
3 changed files with 23 additions and 5 deletions

View File

@@ -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)

View File

@@ -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)