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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -