0
Hello, I would like to know how to create a system of friendships for my application, facebook style. I’m not making a social network, but I need to implement this system.
I have a table of users where I store data as id and username of registered people.
I saw some solutions out there, that said to create a table "friends", and in this table record the id of the requester, and the id of the requested, then when the user logs in, the system would load his friends from this table. But performatively, in case the application becomes too large, this solution seems to me to be impractical. It would take a long time to load the friends of a particular user, if the table had, for example, 50,000 records.
Does anyone have any idea what I can do to create this system in an efficient way?
So man, I want something different than what’s in this question, he used a friends table, I want a way to create this system.
– user42676