Cassandra issue with delete between filter() and save() -


i have issue delete between loading item , saving cassandra causes columns not updated deleted.

class testitem(model):     uuid = columns.integer(primary_key=true)     data_1 = columns.text()     data_2 = columns.text()  testitem.create(uuid=1, data_1='data_1', data_2='data_2').save()  item = testitem.filter(uuid=1).first() testitem.objects(uuid=1).delete() item.data_2 = 'data_2_deleted'  item_b.save() # stdout: # testitem(uuid=1, data_1=u'data_1', data_2='data_2_deleted')  testitem.filter(uuid=1).first() # stdout: # testitem(uuid=1, data_1=none, data_2=u'data_2_deleted') 

i expect data_1 still present.

is intended behaviour? can change code somehow either item deleted or saved values queried before.

the issue cassandra driver writes rows changed.

in use case wanted write rows, changed or not, used:

testitem.create(**dict(item_b)).save() 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -

reflection - why SomeClass::class is KClass<SomeClass> but this::class is KClass<out SomeClass> -