I have a UDF that updates the TTL of a record. I also have a list of Primary Keys to which I want to apply my UDF. The list is generated outside of Aerospike and is quite large containing at least 25 million keys.
I have successfully run my UDF on:
execute functions.updateTTL() on namespace.set where PK = 'some key'
execute functions.updateTTL() on namespace.set
How can I apply my UDF to only the records whose keys are contained in my list?
You will have to loop through the keys in your client code and use option 1.
Also, be careful about updating TTL - if you are reducing current remaining TTL of a record to expire it out early, you may be asking for trouble.