Does CQL (Cassandra) have the command "IF EXISTS UPDATE ELSE INSERT"?

Does CQL (Cassandra) have the command "IF EXISTS UPDATE ELSE INSERT"? If not, what is the most efficient way to fulfill such a request?

+6
source share
1 answer

Basically you should use the update. In cassandra, they have slightly different mechanics compared to the relational world and will work as implied inserts.

Answer: Is UPDATE implied by INSERT

+3
source

Source: https://habr.com/ru/post/1016528/


All Articles