cassandra query for list the data using timestamp -
i new cassandra. have 1 table following columns customerid, timestamp, action,productid. need select customerid , date - date using time stamp.i dont know how in cassandra appreciated.
first of should remember should plan queries executed in future , make table keys according it. if have keys (customerid, date) query can example:
select * products customerid= '1' , date < 1453726670241 , date > 1453723370048;
please, see http://docs.datastax.com/en/latest-cql/cql/cql_using/useaboutcql.html
Comments
Post a Comment