我很想知道实体关系图将如何查找Facebook。我有点困惑,因为朋友和用户之间有重叠,这会导致数据库中重复的数据条目。
用户可以发帖子,也可以有很多朋友。
然而,
朋友也可以发帖子,也可以有自己的朋友。
如何为facebook这样的社交媒体应用程序设计模式?
谢谢!
发布于 2018-02-17 17:54:12
我可以想象一些类似的东西;
User table - user details
Post table - owned by a user
Friends table - a table that stores the link between people. https://stackoverflow.com/questions/48843837
复制相似问题