We have two Tables Users, UserMatches
Users (UserID, param1, param2....)
We store profile of users in Users table
UserMatches(UserId, matchedUserID)
For every users there could be 0..N matching users
If there are 100 matches for UserID there is repetition of
UserId, UserId1
UserId, UserId2
.....
UserId, UserId100
As you can see the UserMatches table grows NxM. Is there an efficient way we can store this information.
Please note that we cannot store all the matched users in comma separated text. We need a better structure so that we can easily update the table.
2007-07-13
11:16:27
·
5 answers
·
asked by
Naren
1
in
Computers & Internet
➔ Programming & Design