Hello,

I'm trying to get the first and last documents in a sequence. The code goes
like this :

                         let $firstLog := $pageSessionLogs[1]
                         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
significantly.

Is there a faster way of getting the last sequence member ?

Regards,
Danny
_______________________________________________
General mailing list
[email protected]
http://community.marklogic.com/mailman/listinfo/general

Reply via email to