<p dir="ltr">Hi,</p>
<p dir="ltr">Can someone confirm this? If it's true, what exactly is the purpose of offering the if_not_modified flag?</p>
<p dir="ltr">Kaspar</p>
<div class="gmail_quote">On Dec 28, 2012 1:51 PM, "Daniil Churikov [via Riak Users]" <<a href="/user/SendEmail.jtp?type=node&node=4026465&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br type="attribution">
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        Riak doesn't have atomic updates. This if_not_modified does not gives you any guaranties. Best way to handle with simultaneously updates is try to engineer scheme so that only one client makes concurrent updates and in case of conflict any sibling will be good for you. Another option is try to use convergent data types [0][1]
<br>[0] <a href="https://github.com/basho/riak_dt" rel="nofollow" link="external" target="_blank">https://github.com/basho/riak_dt</a><br>[1] <a href="https://github.com/mochi/statebox_riak" rel="nofollow" link="external" target="_blank">https://github.com/mochi/statebox_riak</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://riak-users.197444.n3.nabble.com/Atomicity-of-if-not-modified-tp4026430p4026431.html" target="_blank" rel="nofollow" link="external">http://riak-users.197444.n3.nabble.com/Atomicity-of-if-not-modified-tp4026430p4026431.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Atomicity of if_not_modified?, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://riak-users.197444.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://riak-users.197444.n3.nabble.com/Atomicity-of-if-not-modified-tp4026430p4026465.html">Re: Atomicity of if_not_modified?</a><br/>
Sent from the <a href="http://riak-users.197444.n3.nabble.com/">Riak Users mailing list archive</a> at Nabble.com.<br/>