CRDT appending

Eugene Shubin ev.shuba at gmail.com
Wed Jan 13 08:30:59 EST 2016


Hello Vitaly,

I use Erlang client and riak 2.1.1.
It works, but very slow comparing to insertion of multiple values.

Best regards,
Eugene

2016-01-13 14:09 GMT+01:00 Vitaly E <13vitamins at gmail.com>:

> Hi Eugene,
>
> Which client are you using? Which Riak version?
> In the Java client it is possible to send an update without fetching a
> CRDT first.
>
> For example:
>
> MapUpdate changes = new MapUpdate()
>         .update(ARTIFACT, new RegisterUpdate(artifact))
>         .update(VERSIONS, new SetUpdate().add(version));
> UpdateMap update = new UpdateMap.Builder(location, changes).build();
> client.execute(update);
>
> Also, take into account that there is a practical limitation of the size
> of a CRDT. Usually it's up to 100-200 KB of raw data.
>
> Regards,
> Vitaly
>
> On Wed, Jan 13, 2016 at 2:54 PM, Eugene Shubin <ev.shuba at gmail.com> wrote:
>
>> With CRDT it's not possible to append a value to map or set without
>> fetching previous values.
>>
>> Is that a normal use case for CRDT, I am asking because insertion time is
>> terribly high.
>>
>> Best regards,
>> Eugene Shubin
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160113/a957baf1/attachment-0002.html>


More information about the riak-users mailing list