【发布时间】:2012-07-12 23:47:50
【问题描述】:
我正在寻找一种将 cmets 存储在 cassandra 中的好方法。 谁能给我一个好的 Cassandra 数据模型来存储 cmets?
数据模型应该允许我使用phpcassa 检索一定数量的这些 cmets。
这是我的想法:
Comments = {
CommentId1:{
CommentAuthor,
Content,
Timestamp
},
CommentId2:{
CommentAuthor,
Content,
Timestamp
}
...
}
CommentsLine = {
EntryId1:{
CommentId1: timestamp,
CommentId2: timestamp,
CommentId3: timestamp,
...
}
...
}
但我不确定这是更好的方法。感谢您的帮助。
【问题讨论】: