MySQL Forums
Forum List  »  Performance

Rolling unique user counts
Posted by: Paul Stam
Date: August 09, 2016 02:06AM

Hi!

We collect user data and report on unique visitors. On big periods, these queries take a long time and we have no option in aggregating periods into larger periods.

Rick James suggests to use bitstrings where a userid is being hashed (md5 for instance) and that hash mapped to a single bit inside this bitstring.

How can this mapping be done?

the explanation is also available here: http://mysql.rjweb.org/doc.php/uniques

Any help is greatly appreciated! :)

Options: ReplyQuote


Subject
Views
Written By
Posted
Rolling unique user counts
1483
August 09, 2016 02:06AM
830
August 14, 2016 06:22PM
804
August 15, 2016 01:49AM
775
August 18, 2016 06:03AM
826
August 18, 2016 04:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.