I’ve just started looking into aerospike as it might be a solution to a problem I am looking at.
I want to be able to do something like this:
OPERATE LIST_APPEND(ListBin, 'JSON[1,2,3]'), MAP_INCREMENT(countBin, 'seq', 1) on test.demo where PK = 'lk1'
Which ends up with the following error:
Error: (-1) Error: Value is invalid JSON: JSON
I can get the json to insert if I used this method:
insert into test.demo (PK, ListLists) values ('ll2', 'JSON[1,2,3]')
But I want my insert and map increment to be atomic or in a transaction. Any guidance will be much appreciated.