Re: Cassandra primary key design to cater range query

2015-01-09 Thread Ajay
Hi, I read somewhere that the order of columns in the cluster key matters. Please correct me if I am wrong. For example, PRIMARY KEY((prodgroup), status, productid). Then the below query cannot run, select * from product where prodgroup='xyz' and prodid > 0 But this query can be run: select *

Re: Cassandra primary key design to cater range query

2015-01-09 Thread Tyler Hobbs
Your proposed model for the table to handle the last query looks good, so I would stick with that. On Mon, Jan 5, 2015 at 5:45 AM, Nagesh wrote: > Hi All, > > I have designed a column family > > prodgroup text, prodid int, status int, , PRIMARY KEY ((prodgroup), > prodid, status) > > The data mo