What is the best database model for storing user visits and counting unique users using an IP address in a large database with 1,000,000 rows, for example?
SELECT COUNT(DISTINCT ip) FROM visits
But with 1,000,000 different ip it might be a slow request. Caching will not return a real number.
How many statistics systems account for unique visits?
source
share