cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Reading a keyrange when using RP
Date Fri, 22 Oct 2010 13:44:48 GMT
That gets you keys whose MD5s are between the MD5s of start and end,
which is not the same as the keys between start and end.

On Fri, Oct 22, 2010 at 2:07 AM, Oleg Anastasyev <oleganas@gmail.com> wrote:
>>
>> The goal is actually getting the rows in the range of "start","end"The order
> is not important at all.But what I can see is, this does not seem to be possible
> at all using RP. Am I wrong?
>
> Simpler solution is just compare MD5 of both keys and set start to one with
> lesser md5 and end to key with greater MD5. RandomPartitioner orders keys by
> their md5, not by value.
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Mime
View raw message