order of siblings

Kresten Krab Thorup krab at trifork.com
Sun Mar 25 12:16:42 EDT 2012

I don't think siblings are in a particular order. But each sibling has a last-modified property that you could use as a default resolution mechanism.


Sent from my iPad

On Mar 24, 2012, at 19:24, "Michael Radford" <mrad at blorf.com> wrote:

> Is there a way to determine what Riak thinks is the last-written
> sibling (or one of them), when reading from Riak with allow_mult=true
> (via the erlang protobufs api)?
> I'm writing some conflict resolution code, which in many cases should
> fall back to the default strategy of last-writer-wins, and it would be
> nice to use Riak's default ordering instead of embedding an extra
> timestamp in the value.
> It looks like something like the unpacking of the vclock here might work:
> https://gist.github.com/1380896
> ...assuming the vclock entries are 1-1 with the siblings, but that's
> not clear to me. Or maybe the siblings already come in a particular
> order, oldest or newest first?
> Thanks,
> Mike
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

More information about the riak-users mailing list