INNER CODE UNIT · C#
RunCountryStatusQueryAsync
ZoneTree/ZoneTree · benchmarks/zonetree-scan-lab/Program.cs:332
public Task RunCountryStatusQueryAsync(CountryStatusQuery[] queries) =>
ScanExecution.RunPartitionedAsync(
"query country/status",
queries.Length,
config.Parallelism,
(start, count, checksum) =>
{
for (var i = start; i < start + count; i++)
{
var query = queries[i];
var prefix = ProfileKeys.CountryStatusPrefix(query.Country, query.Status);
ScanStringIndexProfiles(
CountryStatusIndex!,
prefix,
key => key.StartsWith(prefix, StringComparison.Ordinal),
checksum);
}
});