Performing atomic add operations on LDT (lists/map) during insertion/update

Is Aerospike able to perform an atomic addition operation on a LDT Map during an insertion or update operation?

I am storing an inverted index containing unique documents that possess certain properties for fast lookups across the entire database of millions of documents.

The Data Model looks something like this:

cluster id (key) | document ids (LDT Map) 1 | abc : 2, abe: 3, acc: 1 …

suppose I have to update the document abc by adding 3 to the existing record so the result is 5. Does aerospike support this using as_operation ?

This can be done via a UDF on the LDT bin. The UDF will be able to perform the add() operation.


© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.