I want to track the visitors for each of my users, for each day.
date | user_id | US | CA |...
__________________________
| | | |
My query is
UPDATE mytable SET :country = :country + 1 WHERE user_id = :user_id AND date = :date
Is there a better way to store the users visitor stats for each country per day? The query will be performed 1 million times a day, so it should be lighweight.