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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -