I am not sure but I think that builtin (maybe not all) and user defined functions are not able to use indeces at all. Tamino calculates arguments and passes result nodeset to external code. This code scans the nodeset and retrieves max value.
As a workaround you could modify your query.
_xql(1,1)=CUSTOMER sortby(ID desc)/ID
This will be certainly faster.
[This message was edited by Alexander on 10 Oct 2002 at 09:13.]
#API-Management#webMethods#Tamino