Just like Twitter’s pattern, one user can follow another, and the others’ news containing new tweets, new photos and something like that will display on this user’s homepage in time order.
I don’t have any idea on this. One may follow thousands of other users, if i use ‘select’ to do this, there would be too much select query to do.
If anyone please tell me a general idea on this?
Just like Twitter’s pattern, one user can follow another, and the others’ news containing
Share
Then you use
TOPorLIMITin your query to limit the amount of returned results. You could implement paging with, say, 50 messages per page, so each query will only return 50 messages.