MapReduce paging result

Daniil Churikov ddosia at
Fri Aug 10 02:07:40 EDT 2012

To do paging in mapreduce queries I make queries based on secondary indexes
(2i). My keys is ordered by date and so I could ask date period. If you need
results based on not dates but number of keys, you could name your keys like
"00001", "00002", etc. But it would be problem with strict number of results
if you sometimes drop some keys.
Example of mapred query with 2i(leveldb backend) and riak protocol buffers

    {index, <<"page_bucket">>, <<"$key">>, From = "00001", To = "00099"},
    [{map, {modfun, riak_kv_mapreduce, map_object_value}, none, true}]

View this message in context:
Sent from the Riak Users mailing list archive at

More information about the riak-users mailing list