alter composite primary key in cassandra CQL 3.0

后端 未结 2 437
予麋鹿
予麋鹿 2021-01-01 09:58

I\'m in a situation where I need to change the the composite primary key as follows:

Old Primary Key: (id, source, attribute_name, updated_at);

2条回答
  •  醉酒成梦
    2021-01-01 10:23

    If there is a possibility to use the old primary key, you could create a materialzied view: http://docs.datastax.com/en/cql/3.3/cql/cql_using/useCreateMV.html But it is only recommendable, if you would need the old key.

提交回复
热议问题