Hi,
I need a help in script where users can add other users as their friends and they can join some communities like Facebook.
Now I just need to know one thing.
Would it be efficient if I make one common table with
| Main user | Other user |
| xyz | abc |
and then call like SELECT * FROM (the above table) WHERE main user=xyz
and correspondingly I show it in the main user's profile that abc is his friend?
What I thought was that if there are a million user, would it be inefficient or slow coz everytime it will check that table for all different users logged in simultaneously?