cts.countAggregate( range-index as cts.reference, [options as String[]], [query as cts.query?], [forest-ids as (Number|String)[]] ) as Number
Returns the count of a value lexicon.
This function works like cts:count
except it performs the
counting in parallel in all data nodes then aggregates the values. It
generally performs better than cts:count
, especially on
large clusters.
cts.countAggregate(cts.pathReference("/path/index")); => 12