I am developing a facebook type application for my institute.
and I'm stuck in the friends module. That is, how to find out if individual users are just friends.
I walked a lot, but did not get satisfactory answers. What I get will be: there will be many friends of the person, and the introduction of users and their friends in a separate table will only increase the redundancy and large size of the database.
I was thinking about using a graph with vertices as users and edges as a join.
But how to implement something like this in db.
Or How does Facebook handle so many relationships?
source
share