collections - Sql VS NoSql maintaining a network of friends -
suppose, person has multiple friends , each of friends, further has multiple friends. consider connection or network of friends.
the sql way: maintain single table of users , in it, keep his/ list of friends, perhaps string delimiter.
the nosql way: maintain friends list in each documents or maintain collection each user.
if maintain collection each user, have impact on speed, because volume of users can high.
Comments
Post a Comment