Databases · Senior · Question 36 of 75

How can you count unique visitors over huge data sets cheaply when approximate results are fine?

Explanation

HyperLogLog keeps about 12 KB per counter in Redis with around 1% error. Sketches can also be merged across days or shards.

Further reading

Problem with a question

Databases · Senior · question 36

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz