4 ms·
>Each post gets 2 HLL counters, one positive votes and one negative. When a user upvotes or downvotes a post, their id is submitted to the corresponding HLL cou
by nemothekid 10y ago
>Each post gets 2 HLL counters, one positive votes and one negative. When a user upvotes or downvotes a post, their id is submitted to the corresponding HLL counter.
Third, you wouldn't be able to undo your vote.
- illicium 10y agoIt shouldn't be an issue given that HLL is approximate and that relatively few votes are undone. You could also debounce the vote before recording it in the counter, at the cost of a small delay.