[MarkLogic Dev General] Faster alternative to fn:last()
d.sinang at gmail.com
Fri Jun 22 13:24:12 PDT 2012
I'm trying to get the first and last documents in a sequence. The code goes
like this :
let $firstLog := $pageSessionLogs
let $lastLog := $pageSessionLogs[fn:last()]
After doing some timings, it looks like the 2nd line always takes around 30
milliseconds. And since I'm doing this in a loop, the delays add up
Is there a faster way of getting the last sequence member ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General