I have around 15000 records in xml format in a uri, say:"documents/products/specs/*.xml
".
Each xml is of around 25 Kilo Bytes in size. I connected to this marklogic server uisng a remote Apache Tomcat Server that has a XCC client
(Java), which tries to execute a AdHocQuery
which resembles something like this:
let $a := cts:uri-match('documents/products/specs/*.xml')
for $xml in $a
return fn:doc($a)
(for loop is implemented in java).
This works fine. But for records with larger count, say for 15000 record, it takes 60 minutes, when all the server and internet speed are very good. (Total size of all document in the uri will be around 20 MB which should not take more than 20 Minutes).
Is there any workaround ?