Link walking with Erlang riak client

Bryan Fink bryan at
Wed Jun 20 07:41:51 EDT 2012

On Tue, Jun 19, 2012 at 12:35 PM, Morgan Segalis <msegalis at> wrote:
> Hi everyone !

Hi, Morgan.

> 1 - Are Link walking in Erlang fast & easy ?

Link-walking in the Erlang client is provided via the MapReduce
interface. Instead of a 'map' or 'reduce' phase, specify a 'link'
phase like:

    {link, Bucket, Tag, Keep}

Bucket is either a binary name of a bucket to match, or the atom '_',
which matches any bucket. Tag is either a binary tag to match, or the
atom '_', which matches any tag. Keep is a boolean with the same
meaning as in map and reduce phases.

> 2 - Is it possible to check fast if A -> B -> A (still in Erlang)? ('->' represents Links)

The fastest way to do this is to fetch both A and B and look through
the links they contain.


More information about the riak-users mailing list