INNER CODE UNIT · C#
baseCount
ZoneTree/ZoneTree · benchmarks/zonetree-scan-lab/Program.cs:1029
var baseCount = total / partitions;
var remainder = total % partitions;
var count = baseCount + (index < remainder ? 1 : 0);
var start = index * baseCount + Math.Min(index, remainder);
return (start, count);
}
}
sealed record ScanPlan(
ProfileReadPlan ProfileReads,
CountryStatusKey[] CountryStatusKeys,
CountryStatusKey[] RepeatedCountryStatusKeys,
CountryStatusKey[] CountryStatusPrefixes,
CountryStatusQuery[] CountryStatusQueries,
CreatedAtQuery[] CreatedAtQueries)
{
public static ScanPlan Create(ScanLabConfig config, ProfileGenerator generator)
{