Does using LDTs lock the record during operations?


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?


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.



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



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.