incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schuller <>
Subject Re: Partioning and Sorting is it CF Key or Column Key?
Date Sun, 13 Feb 2011 10:44:40 GMT
> Some questions I have:

Answering two of them independently of your Java snippet; not sure
what you intend to be read into it.

> 1) Is partitioning based on CF.KEY or KEY of Column? From what I read it's
> based on column keys and not the CF keys but want to confirm.

Partitioning is based on row key.

> 2) When data is entered is it sorted based on CF.KEY or KEY of column or
> both?

It is always sorted on column name as per the settings of the column
family. It may be sorted on row key if the OrderPreservingPartitioner
is used, but usually one uses the RandomPartitioner in which case it
will not be sorted on key (it will be sorted on ring token).

/ Peter Schuller

View raw message