Updating Riak values in batch

Ricardo Mayerhofer ricardo.ekm at gmail.com
Tue Jun 14 13:51:30 EDT 2016


Hi Luke,
Thanks for your reply! Can I use map/reduce operation to update documents?
Do you have any link with an example?

On Tue, Jun 14, 2016 at 2:44 PM, Luke Bakken <lbakken at basho.com> wrote:

> Hi Ricardo,
>
> If you know your keys in advance, you can fetch the keys in parallel,
> update them, and write them back to Riak in parallel.
>
> Other options include map/reduce jobs that iterate over all the keys,
> but keep in mind that any key listing operation will be resource
> intensive.
> --
> Luke Bakken
> Engineer
> lbakken at basho.com
>
>
> On Mon, Jun 13, 2016 at 11:06 AM, Ricardo Mayerhofer
> <ricardo.ekm at gmail.com> wrote:
> > Hi all,
> > I've a large dataset in Riak (about 20 million keys), storing JSON
> > documents. I'd like to update those documents to remove a JSON attribute.
> > What's the best way to approach this problem in Riak?
> >
> > Thanks.
> >
> > --
> > Ricardo Mayerhofer
> >
> > _______________________________________________
> > riak-users mailing list
> > riak-users at lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>



-- 
Ricardo Mayerhofer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160614/f1cb1c38/attachment-0002.html>


More information about the riak-users mailing list