cts:count-aggregate( $range-index as cts:reference, [$options as xs:string*], [$query as cts:query?], [$forest-ids as xs:unsignedLong*] ) as xs:integer
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:count-aggregate(cts:path-reference("/path/index")) => 12