best way to store 1:1 user relationships in relational database

后端 未结 4 1034
独厮守ぢ
独厮守ぢ 2021-02-01 09:24

What is the best way to store user relationships, e.g. friendships, that must be bidirectional (you\'re my friend, thus I\'m your friend) in a rel. database, e.g. MYSql?

<
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-01 10:03

    Use a key value store, such as Cassandra for example.

提交回复
热议问题