【发布时间】:2017-09-08 02:08:15
【问题描述】:
我的表描述是:
CREATE TABLE user (
id text,
CustID int static,
UpdateDate date,
DateOfBirth date static,
Gender text static,
Address text static,
City text static,
State text static,
Zip text static,
Email text static,
Phone text static,
OverallAssets double,
PRIMARY KEY (id,UpdateDate)
);
select * from user 工作正常。
select * from user where partition key 也可以正常工作。
但是如果我将非分区键放在 where 子句中会低于错误。可能是什么原因?
ReadFailure: Error from server: code=1300 [Replica(s) failed to execute
read] message="Operation failed - received 0 responses and 1 failures" info=
{'failures': 1, 'received_responses': 0, 'required_responses': 1,
'consistency': 'ONE'}
【问题讨论】:
-
我增加了
tombstone_failure_threshold的值。还是不行。 -
您在日志中看到了什么吗?它仍然可能是墓碑(如果你有更多)。
-
我认为我们可以使用允许过滤来查询非分区键。我试过了。
-
使用允许过滤执行查询可能不是一个好主意,因为它会占用大量计算资源。不要在生产中使用允许过滤阅读有关使用 ALLOW FILTERING 的 datastax 文档