cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Holstad <erikhols...@gmail.com>
Subject Re: Best design in Cassandra
Date Tue, 02 Feb 2010 15:52:49 GMT
On Tue, Feb 2, 2010 at 7:45 AM, Brandon Williams <driftx@gmail.com> wrote:

> On Tue, Feb 2, 2010 at 9:27 AM, Erik Holstad <erikholstad@gmail.com>wrote:
>>
>> A supercolumn can still only compare subcolumns in a single way.
>>>
>> Yeah, I know that, but you can have a super column per sort order without
>> having to restart the cluster.
>>
>
> You get a CompareWith for the columns, and a CompareSubcolumnsWith for
> subcolumns.  If you need more column types to get different sort orders, you
> need another ColumnFamily.
>
Not sure what column types mean. What I want to do is to have a few things
sorted by asc and desc order, like {a,b}, {b,a} and {1,2}, {2,1}

>
> -Brandon
>
>


-- 
Regards Erik

Mime
View raw message