[MarkLogic Dev General] MarkLogic folder size limit
VSedov at wiley.ru
VSedov at wiley.ru
Thu Feb 15 01:56:52 PST 2007
hi,
I have huge directory in ML with 500,000 subdirectories, my coworker ask
me to delete this folder and after i sent command
xdmp:directory-delete("...") from Oxygen thru XDBC ML port i get timeout
error and i guess that whole transaction was rolled back. Then i try to
use partial removing (by 500 subdirectories at one time, 1000 produce
timeout too) but removing of 500 subdirectories require about 3-4 min (i
guess that this time will be reduced while directory become smaller from
time to time but still not hope to finish directory removing less then 24
hours)
Any suggestions?
Regards,
Vyacheslav
p.s. here code that i use now - is something wrong here?
declare namespace prop="http://marklogic.com/xdmp/property"
xdmp:set-response-content-type("text/xml"),
let $dir := "/cochrane/2/clcentral/"
let $files := for $f at $i in xdmp:directory-properties($dir, "1")//
prop:directory
where $i <= 500
return (element file fn:base-uri($f) , xdmp:directory-delete(fn:base-uri(
$f)) )
return ( "<?xml version=""1.0""?>",
"<?xml-stylesheet type=""text/xml"" href=""refresh.xsl""?>",
element root $files
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070215/3e6ea1fe/attachment.html
More information about the General
mailing list