Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何使用价值从 Cassandra 获取数据
posts = { '1': { //this post id 'user_id': '4', 'body': 'This is awesome!', }, }
我使用帖子ID获取帖子我可以获取与某些用户相关的帖子吗
我的意思是获取与 user_id=4 相关的帖子,例如示例(使用 user_id 属性查询)
毕业生
为此,您需要维护自己的(二级)索引。例如
userIds = { '4': { //this user id 'post_id': '1' }, }