cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <>
Subject Re: IF NOT EXISTS on UPDATE statements?
Date Tue, 18 Nov 2014 17:24:39 GMT
> There is no way to mimic IF NOT EXISTS on UPDATE and it's not a bug.
INSERT and UPDATE are not totally orthogonal
in CQL and you should use INSERT for actual insertion and UPDATE for
updates (granted, the database will not reject
our query if you break this rule but it's nonetheless the way it's intended
to be used).

OK.. (and not trying to be difficult here).  We can’t have it both ways.
One of these use cases is a bug…

You’re essentially saying “don’t do that, but yeah, you can do it.. “

Either UPDATE should support IF NOT EXISTS or UPDATE should not perform

At least that’s the way I see it.



Location: *San Francisco, CA*
… or check out my Google+ profile

View raw message