Best way to scale data, decrease loading time, make my webhost happy
问题 For a Facebook Application, I have to store a list of friends of a user in my MySQL database. This list is requested from my db, compared with other data, etc. Currently, I store this list of friends within my user table, the uids of the friends are put together in one 'text' field, with a '|' as separator. For example: ID - UID - NAME - FRIENDS => 1 - 123456789 - John Doe - 987654321|123456|765432 My PHP file requests this row and extracts the list of friends by exploding that field ('|').