There are a number of reasons why a your script is slow, so it's hard to tell 
without more detail.

- If you just do search:search, is it still slow?  Or is that part fast?   How 
many results are you getting?
- What are you trying to accomplish with the cts:search in (2) ?

Eric

On Feb 18, 2013, at 9:00 AM, Varun Varunesh <varunesh...@gmail.com>
 wrote:

> Hi All,
> I have written one search xqy which basically returns me a XML document. My 
> ML database contains XML documents which structure is predefined i.e. like 
> this  
> <sec name=" ">
>       sec data
> <\sec>
> 
> What i did it.....
> 1)  I am first searching for those document in my database which contains the 
> searching string using search:search()
> 2)  Then for each document returned by search:search(), I am using 
> cts:search() to take only that section in my result....
> 
> But this xqy is taking more time as we are expecting. Is there any other way 
> to do this...?   
> 
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to