Cardinality accuracy for very low cardinality



I'm wanting to use a cardinality aggregation to determine whether the value of a particular field is unique among my data. Essentially I am just interested in whether the cardinality is exactly 1, or above 1. I don't care about the exact count unless it is exactly equal to 1, which is important to know.

I understand that the cardinality may not be completely accurate in all cases, and there is a precision_threshold option to allow for greater accuracy.

The docs state:

The precision_threshold options allows to trade memory for accuracy, and defines a unique count below which counts are expected to be close to accurate.

It's not clear to me exactly what "expected to be close to accurate" means. With the default value of 3000, what I want to confirm is whether this means I can guaranteed that if the cardinality was 1, I would be returned that value in all cases.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.