只是考虑一下,所以如果其中任何一个不正确,请纠正我的理解。
环境:Apache Cassandra v3.0.0
假设您有一个表和一个在其上创建的物化视图:
create table source(
id text, field text, stamp timestamp, data text,
primary key(id, field))
create materialized view myview as
select * from source
where data is not null and id is not null and field is not null
primary key (data, field, id)
我的理解是,myview.data
这基本上是此处视图的分区键(并且其中的数据source
由服务器自动复制到myview
?)。
如果这是真的,当对表执行表更新source
并source.data
更新列时,内部会发生什么?