Jump to content

whats more efficent?


ohdang888

Recommended Posts

i have a "add friends" tool i'm building...

 

but i'm confused as to what tables would be more efficient?

 

Table 1

user_1_id -- user_2_id

This table would have 1 row for every " friend relationship"

 

 

Table 2

id (of user) -- friend_1--friend_2-- friend_3-- etc.

This table would have 1 row per user, and friends would be added to the row, each under a new column

 

 

Link to comment
https://forums.phpfreaks.com/topic/97411-whats-more-efficent/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.