Re: The changing clustering key

2017-04-06 Thread Monmohan Singh
ined/ > > > > > > > > Gesendet von meinem Windows 10 Phone > > > > *Von: *Monmohan Singh > *Gesendet: *Donnerstag, 6. April 2017 13:54 > *An: *user@cassandra.apache.org > *Betreff: *The changing clustering key > > > > Dear Cassandra expert

AW: The changing clustering key

2017-04-06 Thread j.kesten
changing clustering key Dear Cassandra experts, I have a data modeling question for cases where data needs to be sorted by keys which can be modified. So , say we have a user table {    dept_id text,    user_id text,    user_name text,    mod_date timestamp    PRIMARY KEY (dept_id,user_id) } Now I can

Re: The changing clustering key

2017-04-06 Thread Monmohan Singh
thanks for the pointer. Let me readup more on Materialized views and see if that helps solve our problem. I do know that its not supported in our current version 2.2.x but I can explore moving to Cassandra 3. On Fri, 7 Apr 2017 at 04:22 Eric Stevens wrote: > Just curious if you've looked at mate

Re: The changing clustering key

2017-04-06 Thread Eric Stevens
Just curious if you've looked at materialized views. Something like: CREATE MATERIALIZED VIEW users_by_mod_date AS SELECT dept_id,mod_date,user_id,user_name FROM users WHERE mod_date IS NOT NULL PRIMARY KEY (dept_id,mod_date,user_id) WITH CLUSTERING ORDER BY (mod_date

The changing clustering key

2017-04-06 Thread Monmohan Singh
Dear Cassandra experts, I have a data modeling question for cases where data needs to be sorted by keys which can be modified. So , say we have a user table { dept_id text, user_id text, user_name text, mod_date timestamp PRIMARY KEY (dept_id,user_id) } Now I can query cassandra to g