Re: Ordered index in Riak

2010-12-11 Thread Alexander Sicular
@siculars on twitter http://siculars.posterous.com Sent from my iPhone On Dec 11, 2010, at 16:44, Sean Cribbs wrote: As with all multi-object retrievals, you'll need to use MapReduce. Make the last phase of your query a "sort" phase. If the result of your map phase is a JSON object that

Re: Ordered index in Riak

2010-12-11 Thread Sean Cribbs
As with all multi-object retrievals, you'll need to use MapReduce. Make the last phase of your query a "sort" phase. If the result of your map phase is a JSON object that contains the "timestamp" field, the reduce phase might look like this: function(values){ return values.sort(function(a,b){

Re: Ordered index in Riak

2010-12-11 Thread Alexander Sicular
Redis. On 2010-12-11, Joshua Partogi wrote: > Hi there, > > As I have been told, there is no ordered index in riak. So my question is, > how do you guys implement an ordered index or how do you order a set of data > in riak i.e by timestamps? > > Thanks for sharing. > > -- > http://twitter.com/jp