我们正在设计cassandra中的表,该表具有以下架构:-
customeruuid,assetuuid,activation_status,createdtime
PK(customeruuid,assetuuid)
我们需要支持搜索用例,其中需要在Activation_status列上的where子句中列出特定客户的所有资产。可能有数百万个客户的资产。我在Web上进行了研究,发现我们可以创建一个物化视图这个桌子。我正在尝试使用以下cql进行测试:
创建材料视图myiew1 AS SELECT customeruuid,agentuuid,activation_status 从临时何处customeruuid不为空,并且 agentuuid是非空主键(customeruuid,agentuuid);
我想在select查询中在activaiton_status列上包括where子句,但我无法做到。最新版本的cassandra是否支持这种操作,或者是否可以通过更改数据建模来解决这个问题?