I'll check it out. Thanks.
I've had good luck using this construct to avoid the tree cache errors when
a query returns a lot of data. Not sure why it's not working at this site.
let $incr := 5000
let $size := xdmp:estimate(cts:search(doc(), $cq, 'unfiltered'))
let $segs := ceiling($size div $incr) return
for $x in (1 to $segs)
let $start := (($x -1) * $incr) +1
let $end := $start + $incr -1
return cts:search(doc(), $cq, 'unfiltered')[$start to $end]
Gary Larsen
Envisn Inc.
508 259-6465
From: [email protected]
[mailto:[email protected]] On Behalf Of Eric Bloch
Sent: Tuesday, November 05, 2013 11:01 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] export / import ?
Gary,
See http://developer.marklogic.com/products/mlcp.
That said, tree cache errors usually mean you have a query that needs to be
rewritten in some way. For example, see
http://stackoverflow.com/questions/16979086/marklogic-expanded-tree-cache-er
ror-while-inserting-documents
Best,
Eric
Eric Bloch
Director, Community
MarkLogic Corporation
desk +1 650 655 2390 | mobile +1 650 339 0376
email [email protected]
web developer.marklogic.com
twitter @eedeebee
On Nov 5, 2013, at 7:59 AM, Gary Larsen <[email protected]>
wrote:
Is there a utility which will allow me to extract all the documents from a
collection, and them import into another database?
Trying to debug tree cache errors at a customer site and need to replicate
the error. I'd rather not try to use backup/restore of the database due to
the size.
Thanks,
Gary
_______________________________________________
General mailing list
<mailto:[email protected]> [email protected]
<http://developer.marklogic.com/mailman/listinfo/general>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general