It's very much possible to implement limited range queries that return
continuations or allow you to specify offset.  I wrote an implementation
myself [1] for fun a while back (first version used client side
continuations and second allowed to pass offset).  When something like this
will be on the roadmap I am not sure.

May I suggest voicing your request here as well:
http://features.basho.com/home

[1]: https://github.com/rzezeski/riak_kv/tree/native-range
https://github.com/rzezeski/riak-erlang-client/tree/native-range

On Wed, Jan 25, 2012 at 1:08 PM, Michael Radford <[email protected]> wrote:

> I'm wondering if there's any way to achieve a limited secondary index
> read in Riak, i.e., up to N records in some key range.  With that
> primitive, it seems like it would be possible for the user to
> implement things like pagination, incremental joins over multiple
> indices, etc.  (For efficiency I guess it would have to be something
> like "up to N records from each vnode"?)
>
> Looking at the source code, I think the answer is no, but since range
> queries are already implemented using iterators, it doesn't seem like
> it would be too hard to add. Can anyone comment on the roadmap for a
> feature like this, and/or the possibility of getting a patch accepted?
>
> Mike
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to