MySQL Forums :: Performance :: Rolling unique user counts


Advanced Search

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 400 Paul Stam 08/09/2016 02:06AM
Re: Rolling unique user counts 255 Rick James 08/14/2016 06:22PM
Re: Rolling unique user counts 246 Paul Stam 08/15/2016 01:49AM
Re: Rolling unique user counts 235 Paul Stam 08/18/2016 06:03AM
Re: Rolling unique user counts 261 Rick James 08/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.