I’ve been working on my affiliate program for my software, and I’ve finally finished it, now I’m working on the dashboard.
I decided that I wanted to add impression statistics to the dashboard (Amount of page views).
The way I thought about doing this was saving a row into a database every-time the page was loaded, with a key-value of the affiliates user-name, and then the date.
This would definitely work, and do what I want it to, however this would populate the databases ridiculously quickly.
I will have to store the impression data for three months, and if a single affiliate is generating 1,000 impressions per day, that’s 1,000 rows in the database, seems highly inefficient.
What do you guys recommend as an efficient way to do this?