I have a fairly large mySQL database to individual text files (guitar tabs).
I want to order a top 10 list of the files by popularity in my php document.
Currently i simply order my list by the number of views per file.
This is not satisfactory as newer files are typically going to have been viewed less that older files that have been there forever.
How would this best be done.
Surely it would be inefficient to process each database entry (views / time_since_posted). Is there a better way to do this.
Any Ideas?
The website in question is http://kiwitabs.derail.co.nz - browse by most popular
I cant find anything on the net with regards to popularity listing.