Range query on clustering key
问题 I have a table where I am logging user activity performed on my website. My table structure looks like: CREATE TABLE key_space.log ( id uuid, time bigint, ip text, url text, user_id int, PRIMARY KEY (id, time) ) WITH CLUSTERING ORDER BY (time DESC) Now I want to fetch all the records which came in last 5 minutes. For doing the same, I am using select * from key_space.log where time>current_timestamp - 5 minutes ALLOW FILTERING; But this query is not returning any result & i am getting