I'm playing with search:search
I have about 4GB of data (few million xml files)
Most searchs return with a second or 2 but something magic is happening if I
use the word "INFO"
With the following search it takes nearly 3 minutes and returns no results.
I tried other words that both return results and no results and few results and
can only replicate it with the magic word "INFO"
search:search( "INFO" ,
<options
xmlns="http://marklogic.com/appservices/search">
<additional-query>{cts:directory-query("/logs/","infinity")}
</additional-query>
<searchable-expression>/logfile/log</searchable-expression>
</options>
, 1 , 10 )
Profiling shows the majority of time is spent in xdmp:value
MarkLogic/appservices/utils/higher-order.xqy: 52
xdmp:value($expr/hof:lambda/@expr)
1
100
124556878
100
124556880
thats 124 seconds. Everything else is noise (mostly under 100 us).
Any ideas ?
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]<mailto:[email protected]>
812-482-5224
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general