mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
temp cap BatchSize at 10k
This commit is contained in:
parent
66ff429708
commit
bcaece339f
1 changed files with 2 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ namespace FilterLists.Services.Snapshot
|
|||
{
|
||||
public class BatchSizeService : Service
|
||||
{
|
||||
private const int DefaultBatchSize = 500;
|
||||
private const int DefaultBatchSize = 10000;
|
||||
private const float PercentMultiplier = 0.05F;
|
||||
|
||||
public BatchSizeService(FilterListsDbContext dbContext) : base(dbContext)
|
||||
|
|
@ -18,6 +18,7 @@ public BatchSizeService(FilterListsDbContext dbContext) : base(dbContext)
|
|||
|
||||
public async Task<int> GetBatchSize()
|
||||
{
|
||||
return DefaultBatchSize;
|
||||
var recentSnapPerfs = await GetRecentSnapPerfs();
|
||||
return recentSnapPerfs.Count == 2
|
||||
? recentSnapPerfs[0].RulesCount > recentSnapPerfs[0].BatchSize
|
||||
|
|
|
|||
Loading…
Reference in a new issue