Implementing EFFICIENTLY a riak pre-commit hook that does get and put

Ori Bar at
Mon Mar 21 12:28:29 EDT 2011

I implemented a pre-commit hook for riak which gets and updates a specific
"meta" key whenever commits satisfy a specific criteria. I have noticed
however, that doing Client:get to retrieve the "meta" key takes long, and
seriously slows down my commits (about 20 times slower). Are there any
advices on how to do this correctly? I currently call riak:local_client in
the commit hook and then do riak_client:get.

Best Regards,

Ori Bar, Software Engineer
Nivertech Ltd

email: at
phone:   +972-52-2838429

The content of this message is Nivertech Ltd Confidential.  If you are not
the intended recipient and have received this message in error, any use or
distribution is prohibited. Please notify me immediately by reply e-mail and
delete this message from your computer system. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list