I was just wondering, is there a way to change the TTL of a set through AQL query alone. I have gone through this aerospike page : https://discuss.aerospike.com/t/how-to-modify-ttl-using-udf/5608 and it says I will have to create a lua script and execute using aql query, which is fine.
Is there no support in AQL to change the TTL for a particular set using query alone i.e. without having to write a script? Just curious.
Any help would be appreciated. Thanks
I don't think with AQL you can do that without a lua module. However the lua module is quite simple. AQL does not have the ability to utilize Operations in execute(), which is the other way you could do using, say, a Java client.
(sets ttl to argument value, in seconds)
Now load this file to the server via AQL.
I have 10 records, one of them is:
Lets set all records ttl to 100 seconds..