Im目前正在设计一个个人项目数据库,Im正在运行。 实际上,我已经设计了这个概念,但现在我把它从关系(MySQL)改为非宗教(Cassandra)。
One of my tables (called "Friend request table") has a primary key that consists of 3 attributes: Receiver ID, Sender ID, and Request time (timestamp). There are 4 other attributes in the table as well:
Receiver ID (Part of primary key)
Sender ID (Part of primary key)
Request time (Part of primary key)
Request text
Request status
Time last viewed
Time accepted
我的思路是,根据将发件人身份识别器贴上接收器的计算结果,将各行子按申请时间排列。 这将努力储存这些请求,但我不知道我如何恢复这些请求。
是否有任何人建议以另一种方式在卡桑德拉模仿这种做法?