I want to implement a Facebook updates(user action and notifications) on my web application as well. I am using LAMP. Should I make a db table where I store duplicate data or should I make calls to different tables to show user his updates.
Is there a better way to do this.
For Example: When someone comments on user's profile then that should also come in his updates. when some one comments on users's profile this is stored in comments table. There are many functions like this which need to be captured in updates.