I am a newbie to the world of cassandra. I am trying to find the right api in cassandra cqlengine, which I can use to update a record only if one exists previously.
The examples that I have come across do not tackle this particular case and my brute force attempts to get to the answer have failed :(.
From: https://datastax.github.io/python-driver/cqlengine/batches.html
# updating in a batch
b = BatchQuery()
em1.description = "new description"
em1.batch(b).save()
em2.description = "another new description"
em2.batch(b).save()
b.execute()
I have already tried doing if_exists on the model and batch object. It ends up creating new object.
Thanks in advance.