我们正在设计cassandra中的表,它具有以下模式: -

customeruuid,assetuuid,activation_status,createdtime

PK(customeruuid,assetuuid)

我们需要支持搜索usecase,我们需要列出特定客户的所有assetuuid,其中包含activation_status列上的where子句 . 客户可能有数百万资产 . 我在网上进行了研究,发现我们可以在此表上创建物化视图 . 我正在尝试使用以下cql:

CREATE MATERIALIZED VIEW myiew1 AS SELECT customeruuid,agentuuid,activation_status FROM temp WHERE customeruuid IS NOT NULL AND agentuuid IS NOT NULL PRIMARY KEY(customeruuid,agentuuid);

我想在select查询中包含activaiton_status列的where子句,但我无法做到 . 最新版本的cassandra是否支持此类操作?或者我们是否有其他替代方案可以通过更改数据建模来解决此问题?