In CQL, both UPDATE AND INSERT have the same semantic and are both "upsert".
I.e, INSERT does not fail if the record was already existing and
UPDATE does not fail if the record wasn't existing.

--
Sylvain

On Wed, Apr 25, 2012 at 1:18 PM, Maciej Miklas
<mac.mik...@googlemail.com> wrote:
> CQL will have UPDATE future, I am trying to understand how this could work.
>
> Every write is an append to SSTable, UPDATE would need to change data, but
> only if it exists, and this is problematic, since we have distributed
> system.
>
> Is UPDATE special kind of insert, which changes given data only if it
> already exists? Will be UPDATE resolved first during read operation (SSTable
> merge)?
>
>
> Thanks,
> Maciej

Reply via email to