On Mon, Dec 4, 2017 at 4:13 AM, Peng Xiao <2535...@qq.com> wrote:

> Dear All,
> If we update a record which actually does not exist in Cassandra,will it
> generate a new record or exit?
>
> UPDATE columnfamily SET data = 'test data' WHERE key = 'row1';
> as in CQL Update and insert are semantically the same.Could anyone please
> advise?
>

If you're looking for a way to update only existing records you need UPDATE
IF EXISTS, which invokes an LWT.

Cheers,
--
Alex

Reply via email to