cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasenjit mukherjee <prasen....@gmail.com>
Subject Re: Effect of rangequeries with RandomPartitioner
Date Mon, 09 Jul 2012 07:24:36 GMT
Thanks for the response. Further questions inline..

On Mon, Jul 9, 2012 at 11:50 AM, samal <samalgorai@gmail.com> wrote:
>> 1. With RandomPartitioner, on a given node, are the keys  sorted by
>> their hash_values or original/unhashed keys  ?
>
> hash value,

1. Based on the second answer in
http://stackoverflow.com/questions/2359175/cassandra-file-structure-how-are-the-files-used
it seems that the index-file ( for a given ssTable ) contains the
row-key ( and not the hash_keys ).  Or may be I am missing something.

2. Do the "keys" in  Index-file ( ref
http://hi.csdn.net/attachment/201111/28/0_1322461982l3D8.gif )
actually contain : hash(row_key)+row_key or something like that ?
Otherwise you need a separate mapping info from hash_bucket -> rows
for reading.

-Thanks,
Prasenjit

Mime
View raw message