Counting distinct visitors is not an easy task. In web analytics for example, a visitor can visit on Monday and Thursday, but when counting unique visitors over that week, I'd expect to count that visitor only once.
count (distinct userid)
for 10M visits over a month can't run too fast as aggregations can't be applied (because count distinct is not an "addable" measure).
My question is: How do Google Analytics and other web analytics platforms return unique visitors so fast? I assume statistical estimations are used. What kind? How?