Does using LDTs lock the record during operations?


#1

As LDTs are implemented using UDFs and the corresponding record is locked when UDFs are executed, does this mean that the record is locked when we perform a UDF operation on a bin in the record?


#2

Correct. Any UDF operation for the same record is also the same record lock. Note that LDT bins can also be accessible via a recordUDF function, so both LDT bin and native bins can be manipulated in the same recordUDF function.


#3

@sacheendra1,

Thank you for posting about LDTs in our forum. Please see the LDT Feature Guide for current LDT recommendations and best practices.


#4

@sacheendra1,

Effective immediately, we will no longer actively support the LDT feature and will eventually remove the API. The exact deprecation and removal timeline will depend on customer and community requirements. Instead of LDTs, we advise that you use our newer List and SortedMap APIs, which are now available in all Aerospike-supported clients at the General Availability level. Read our blog post for details.