You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Ara Ebrahimi <ar...@argyledata.com> on 2017/01/20 21:23:42 UTC
updating existing cf+cq with exactly the same value
Hi,
Will accumulo skip writing a cf+cq if the value passed is equal to the existing value for that cf+cq?
If not is ConditionalMutation the way to go? What are the performance implications of using ConditionalMutation?
Ara.
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Thank you in advance for your cooperation.
________________________________
Re: updating existing cf+cq with exactly the same value
Posted by Josh Elser <el...@apache.org>.
No, Accumulo would not skip this update. This is because you are writing
a new value at a new timestamp which is different than the previous
timestamp+value. If you want to avoid re-writing the same update, you
could maintain a transient cache. As long as the cache only returns
false-positives (tells you to write the value when the value is already
present), it's not a big issue to occasionally re-write the same value.
Conditional mutations are much slower than standard mutations because
they have to obtain an exclusive lock for every row being updated.
Ara Ebrahimi wrote:
> Hi,
>
> Will accumulo skip writing a cf+cq if the value passed is equal to the existing value for that cf+cq?
>
> If not is ConditionalMutation the way to go? What are the performance implications of using ConditionalMutation?
>
> Ara.
>
>
>
>
> ________________________________
>
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Thank you in advance for your cooperation.
>
> ________________________________