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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -