Cassandra-CQl : Change Clustering order for Created Column Family -
i know can define clustering order when create table cql code below:
create table test( id int, time timestamp, value text, primary key(id,time)) clustering order (time desc)
but want change clustering table test after creation alter:
alter table test clustering order (item asc)
but got error that. help.
you can't, because require rewriting data on disk in different order, while resorting @ runtime until rewrite done, result in unacceptable hit performance. you'll need create new table , bulk-load in.
Comments
Post a Comment