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

Ordered index in Riak

2010-12-11 Thread Joshua Partogi
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/jpartogi ___

Re: Install question about riak-erlang-client

2010-12-11 Thread Mark Phillips
Hello Xiaopong, Apologies about the trouble you had with the Erlang client. I'll run through the client docs on Monday and make sure we have everything properly explained. While we're on the topic of Erlang client documentation, you might find these handy - http://basho.github.com/riak-erlang-cli

ANN: Remote logging to Riak from Node.js apps

2010-12-11 Thread Jon Brisbin
I just pushed to GitHub a small utility I wrote for doing distrubuted, remote logging to a Riak server. It includes a command line utility that will display the log lines as well as allow you to pass a regular expression to the Map/Reduce phase run on the server which allows you to search throug