Wondering how Facebook does the "Mutual friends" feature
Posted
by Pierre
on Stack Overflow
See other posts from Stack Overflow
or by Pierre
Published on 2010-03-29T09:30:24Z
Indexed on
2010/03/29
9:33 UTC
Read the original article
Hit count: 449
Hello,
I'm currently developing an application to allow students to manage their courses, and I don't really know how to design the database for a specific feature. The client wants, a lot like Facebook, that when a student displays the list of people currently in a specific course, the people with the most mutual courses are displayed first.
As an additional feature, I would like to add a search feature to allow students to search for another one, and displaying first in the search results the people with most mutual courses.
I currently use MySQL, I plan to use Cassandra for some other features, and I also use Memcached for result caching.
Thanks.
© Stack Overflow or respective owner