If you have a table called posts, which contains id, title, content .etc, how would you design a database table to hold meta data about each posts, e.g. how many times it was visited today, this week, etc, and so you can work out which post was most popular this week.
Also whilst I'm here, what is the difference between indexes and inner joins. I know this is similar to this Most efficient database design for a blog (posts and comments) question:
I have three tables, post, author_posts and author and I use inner join to find authors of x post, posts contains a field called author_id, however I have seen some sites which do not contain foreign keys, instead they do something like this:
> post author_posts author
> id id, title, id, post_id,
> name, content author_id username
Which one would be the quickest/ which one should you use?