incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: date range queries
Date Wed, 16 Dec 2009 21:18:57 GMT
You can either write a TimeUUID Partitioner, if that is the only kind
of key you have in your cluster, or use a different partitioner and
prefix the keys w/ a date in a format that sorts correctly in whatever
collation you are using, e.g. ISO 8601 for our standard
OrderedPartitioner.

On Wed, Dec 16, 2009 at 1:08 PM, Richard Grossman <richiesgr@gmail.com> wrote:
> I've the same requirement but in my case the date is the key of the CF so
> how to use the timeUUID if the date is the key and not a column ??
>
>
> On Wed, Dec 16, 2009 at 8:29 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
>>
>> On Wed, Dec 16, 2009 at 12:15 PM, Adam Fisk <a@littleshoot.org> wrote:
>> > That call made sense for columns, but not for SuperColumns of course,
>> > and that was the culprit. Ideally the various slice calls would do a
>> > quick check to make sure both the SlicePredicate and the ColumnParent
>> > are either both referring to SuperColumns or are both referring to
>> > Columns and fail fast if not, but now I'm just nitpicking.
>>
>> That is a good suggestion.  Can you create a ticket?
>>
>> -Jonathan
>
>

Mime
View raw message