Hi,
I was wondering how to best implement a "most viewed" featured (like youtube) on my database.
Let me explain the "most viewed" feature a little bit better: Basically I want to list the most visited pages/video/etc from this day/week/month, see http://www.youtube.com/charts/videos_views for an example.
So I was wondering how to best implement this feature as I can think of many many ways of doing it but all of them have their + and - to them.
Plus I also would love to hear the comments of various programmers on others programmers ideas. Also i would like to start a good conversation on this topic.
Cheers.
Ps. I'm looking specially on how to calculate the time, say most viewed in this month, without having a huge table saving every single view with the datetime. Any idea is welcome - thanks. Pps. I use Mysql and PHP, extra tips for those two are very welcome.