Let's say I have 2 tables, Message and Product. Whenever a user post a new products or messages, users who subscribe to that particular user will have their feed updated.It is similar to Facebook feed.
The problem is how to combine the records from 2 different tables, Message and Product, to make a news feed, the feed has to be sorted by the date posted.
I think it is hard to done using purely SQL, or maybe I need another table and insert new row whenever a new product or message is created?
thanks for reading, hopefully can get some help here, thnx!!