I need to decide about my database architecture. The app provides files for download. I can add a counter to every file and track total events. But the client may want some analysis and ask for the most popular content over the last 30 days. In this case, the download counter would not work anymore.
Alternatively, I can create a Downloads table with date and filename fields. We can then query downloads for any period of time and any file. BUT the disadvantage is that the amount of data in the table could be HUGE. Is there a way to improve this solution?