Thanks Damon, Looks like this is providing significant performance improvement. 
Let me closely look into result.

Thanks
Abhishek Srivastav
Tata Consultancy Services
Cell:-609-865-1885 
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________



[email protected] wrote: -----


To: MarkLogic Developer Discussion <[email protected]>
From: Damon Feldman <[email protected]>
Sent by: [email protected]
Date: 07/17/2013 05:40PM
cc: "[email protected]" <[email protected]>
Subject: Re: [MarkLogic Dev General] Performance degradation sequence 
intersection


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]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________ 
 
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to