Abhisekh, There are some examples using map:map() structures that may help in a thread from last month: http://markmail.org/thread/c4hq6n3mwbuxnl2i.
Yours, Damon From: [email protected] [mailto:[email protected]] On Behalf Of Abhishek53 S Sent: Wednesday, July 17, 2013 5:32 PM To: MarkLogic Developer Discussion Cc: [email protected] Subject: [MarkLogic Dev General] Performance degradation sequence intersection Importance: High Hi All, I am getting significant permance degradation in creating intersection between two big sequences. I am using following code for sequence intersecation let $sequence := cts:element-values(xs:QName("item1")) (:returns 3000 items:) let $sub-sequence := cts:element-values(xs:QName("item2")) (:returns 30 items:) return fn:distinct-values($sequence[.= $sub-sequence]) (:Takes 5-6 sec:) Please let me know if there is some better way to address this Regards Abhishek Srivastav Tata Consultancy Services Cell:- +609-865-1885 Mailto: [email protected]<mailto:[email protected]> Website: http://www.tcs.com<http://www.tcs.com/> ____________________________________________ Experience certainty. IT Services Business Solutions Consulting ____________________________________________
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
