Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to decrement a HyperLogLog set in Redis

Let's say that i have a hyperloglog in redis which counts messages is there any provisions whereby I can to some degree account for delete messages?

like image 212
Jack Avatar asked Feb 15 '17 12:02

Jack


People also ask

What is HyperLogLog in Redis?

HyperLogLog is a data structure available in Redis that is used to count the number of unique elements in a set using a small, constant amount of memory. The element count is approximated with a standard error of 0.81%.


1 Answers

No, the HyperLogLog doesn't support the concept of deletion. Instead, use a different counter (could be an integer, Set or HyperLogLog) and subtract the totals.

like image 147
Itamar Haber Avatar answered Jan 01 '23 18:01

Itamar Haber