Basic sorting is supported in large lists (LDT).
In a large list, your key (index) is always ordered lexically by default.
Note that the directive ldt-enabled truemust be present in the namespace configuration area inaerospike.conf
javascript client example
var key = {ns: 'test', set: 'mySet', key: 'myKey'};
var callback = function (status, result) {console.log(status, result)}
var list = client.LargeList(key, 'targetBinName', null, callback));
list.add(1, callback);
list.add([0, 2, 4, 5], callback);
list.add(3, callback);
list.scan(function (status, list) {
})
list.findRange(0, 3, callback)
list.filter('udfName', callback)
if you need to save objects, you must add a property keythat will be an index for sorting, range, duplicates, etc. (duplicates are not allowed by default)
list.add({key: 1})
list.add([{key: 0},{key: 2}])
, .
NodeJS Github