cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <>
Subject Re: Cassandra range scans
Date Mon, 22 Feb 2010 20:34:56 GMT
On Mon, Feb 22, 2010 at 2:23 PM,  <> wrote:
>> You could use supercolumns here too (where the supercolumn name is the
>> thing type).  If you always want to retrieve all things of type A at a
>> time per user, then that is a more natural fit.  (Otherwise, the lack
>> of subcolumn indexing could be a performance gotcha for you:
> Would you say the supercolumn approach is faster than scanning rows? Any particular advantages
or disadvantages to writing to a bunch of supercolumns at once (e.g. in one user row), vs.
writing to a bunch of rows at once (with the same key prefix, i.e. close together in an order-preserved

Depends.  What 598 says is that whenever you want to read any
subcolumns from a supercolumn, it has to deserialize all the

So if you were going to ask for all of them anyway, no big deal.  But
if you just want a relatively small number, it will be non-negligible.


View raw message