Which Lua LDT library to add?


#1

What’s the difference?

local llist= require(“ldt/lib_llist”);

vs

local llist= require(“external/llist”);


#2

Zhongcai_Ng

First is to get hold of module object for ldt/lib_llist.lua. Using this you can use the ldt from inside UDF.

Second file is externally visible API file. This gets automatically registered as available function for the client to run. (Client cannot see the funcitons in ldt/lib_llist.lua). Client can directly call functions in this file. Your statement is essentially NO-OP because external/llist does not return any object.

– R


#3

@Zhongcai_Ng,

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


#4

@Zhongcai_Ng:

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.