Re: Manipulating CRDTs inside commit hooks/mapreduces

2015-05-07 Thread Drew Kerrigan
Hi Cezary, I've created some sample code that creates a CRDT from within a postcommit hook: https://github.com/drewkerrigan/riak_snippets/tree/master/hooks/crdts It should be noted however that this is not ideal usage of Riak; There's a reason that examples of this type of behavior are not easy t

Manipulating CRDTs inside commit hooks/mapreduces

2015-05-02 Thread Cezary Kosko
Hi, I've got a situation where I'd like to create a new map record with some data inside a commit hook or a mapreduce job and then push it into Riak. Some questions here: 1. Do I call riak_kv_crdt:new with the proper Bucket, Key & to_mod("map")? Does that overwrite what's in Riak, by any chance?