基于UDID查询Cassandra表而不允许过滤

时间:2017-08-03 16:17:26

标签: cassandra uuid cql

例如,我有一个表设置如下:

CREATE TABLE IF NOT EXISTS test (
    id uuid PRIMARY KEY,
    name text,
    age int
);

当我尝试查询此表以根据uuid选择1个条目时,出现错误:Bad Request: Cannot execute this query as it might involve data filtering and thus may have unpredictable performance. If you want to execute this query despite the performance unpredictability, use ALLOW FILTERING.

如何正确查询此表以根据其UUID选择条目。

0 个答案:

没有答案