Riak question

Sean Cribbs sean at basho.com
Thu Jul 15 12:16:36 EDT 2010


Adding riak-users to the discussion since this is important to share.

There is no shortcut for link walking in Erlang, but it is simple to do with map-reduce.  If your HTTP link-walking query looked like this:

/riak/artists/TheBeatles/albums,_,_/tracks,_,1

You would create a map-reduce query like this:

Client:mapred([{<<"artists">>, <<"TheBeatles">>}],[{link, <<"albums">>, '_', false},{link,<<"tracks">>,'_',true}]). 

Sean Cribbs <sean at basho.com>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Jul 15, 2010, at 10:12 AM, Kostya V wrote:

> Hello, there are some miss in your manuals for Riak. How to write link_walking for Riak in Erlang ?





More information about the riak-users mailing list