【发布时间】:2018-08-14 11:44:18
【问题描述】:
我在 Cassandra 中创建了下一个表
create table yyy (
index1 int,
index2 int,
name text,
primary key ((index1, index2), name)
)
当我仅按 index1 搜索时,完美。没问题!
select * from yyy where index1 ...
购买我无法通过 index2 搜索
ReadFailure: 来自服务器的错误: code=1300 [Replica(s) failed to execute read] message="操作失败 - 收到 0 个响应和 1 个失败" info={'failures': 1, 'received_responses': 0, 'required_responses': 1, '一致性': 'ONE'}
如何按 index2 进行搜索?
【问题讨论】:
-
您能否发布返回错误的查询?您还创建了任何二级索引吗?