cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mete <>
Subject querying time series from hadoop
Date Thu, 26 Dec 2013 08:56:53 GMT
Hello  folks,

i have come up with a basic time series cql schema based on the articles

so simply put its something like:

rowkey, timestamp, col3, col4 etc...

where rowkey and timestamp are compound keys.

Where i am having issues is to efficiently query this data structure.

When i use cqlsh and query it is perfectly fine:

select * from table where rowkey='row key' and date > xxx and date <= yyy

but when i am using the java driver, the driver already uses row key for
token statements and i cannot execute the query above, therefore it does a
full scan of rows.

The issue that i am having is discussed here:

i have gone through the relevant jira issues 6151 and 6311. This behaviour
is supposed to be fixed in 2.0.x but so far it is not there. So now i will
try to patch my cassandra 1.2.11 installation but i just wanted to ask you
guys first, if there is any other solution that does not involve a release.

i assume that this is somewhat a common use case, the articles i referred
seems to be old enough and unless i am missing something obvious i cannot
query this schema efficiently with the current version (1.2.x or 2.0.x)

Does anyone has a similar issue? Any pointers are welcome.


View raw message