cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@riptano.com>
Subject Re: Reading a keyrange when using RP
Date Thu, 21 Oct 2010 16:03:44 GMT
You can't get rows back in order with RP.

You can start out with a start key and end key of '' (empty) and use the row
count argument instead, if
your goal is paging the rows.  To get the next page, start from the last key
you got in the
previous page.

On Thu, Oct 21, 2010 at 8:44 AM, Utku Can Top├žu <utku@topcu.gen.tr> wrote:

> If I'm not mistaken cassandra has been providing support for keyrange
> queries also on RP.
>
> However when I try to define a keyrange such as, start: (key100, end:
> key200) I get an error like:
> InvalidRequestException(why:start key's md5 sorts after end key's md5.
> this is not allowed; you probably should not specify end key at all, under
> RandomPartitioner)
>
> How can I utilize cassandra to get a keyrange in RP?
>
> Best Regards,
> Utku
>

Mime
View raw message