Quick question about efficiently implementing Facebook 'news feed' like functionality
Im sure most are fami
liar w
ith Facebooks 'news feed'. If not, the 'news feed' basica
lly lists recent activ
ity of all of your friends.
I dont see how you can get th
is information eff
iciently from a DB:
* Im assuming a
ll user activity is inserted in a "actions" tab
le.
* first get a l
ist of all your friends
* then query the act
ions table to return recent activ
ity where the activity belongs to someone on your friends list
This can't be eff
icient especially considering some people have 200+ friends.
So what am I m
issing? How do you think Facebook is imp
lementing their "news feed".
Im not asking for any specific details, just a general point in the right direction, as I cant see how they are implementing the 'news feed efficient
ly.
Thanks.
Article originally appeared on (http://highscalability.com/).
See website for complete article licensing information.