seancribbs/ripple — Issue #233: PB client unnecessarily fetched object when storing object using prevent_stale_writes
Author: eliaslevy
Created: 2011-10-29 22:24:51+00:00
State: open

If you set prevent_stale_writes the PB client first fetches the key to compare the vector clocks itself. See beefcake_protobuffs_backend.rb: store_object.

But this is unnecessary and adds an additional round trip of latency to the request. Riak supports the if_not_modified options in the PB interface, which will let Riak perform the check itself.

See http://wiki.basho.com/PBC-Store-Object.html