UPDATE with FILTER


#1

is it possible to update a record with filter in aerospike ? e.g Lets say for a set TABLE_X, bin att1, initial value=0. UPDATE TABLE_X set TABLE_X.att=1 where PK=10 and TABLE_X.att=0;

Above command should succeed while

UPDATE TABLE_X set TABLE_X.att=1 where PK=10 and TABLE_X.att=1; should fail.


#2

You can encapsulate this logic in a UDF. This is not possible in the regular put() API.