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

Ori Bar ori.bar at nivertech.com
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:    ori.bar at nivertech.com
phone:   +972-52-2838429
www:     http://www.nivertech.com

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: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110321/0b723ac2/attachment.html>


More information about the riak-users mailing list