There should not be any performance difference between an XCC content insert with multiple documents and an XQuery module with multiple calls to xdmp:document-insert(). Both approaches would process the new documents as a single transaction.

If you have a test case that illustrates the problem you're seeing, someone on the list might have an idea. Or you might get a more thorough answer by contacting our support team.

-- Mike

On 2009-12-09 08:19, Runstein, Robert E. (Contr) (IS) wrote:
Is there a way to batch insert multiple in memory documents using XQuery rather 
than Java?  xdmp:document-insert processes one document at a time and is slow 
for multiple documents.

Bob

Wow ... sorry for the spam but I did it !

I got the 500 docs/sec.  And no it wasnt the manual directory mode.

it was a bug in my batching code (using XCC) , it was still sending 1 file at a 
time - darn typeo.

I fixed it to send 500 files at a time and now I'm getting about 500 docs/sec !!

Finally :)

Any suggestions using XCC on which would be faster  ?

1)      ContentLoader.load(  String[] , File[] )

2)      Session.insertContent( Content[] )


_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to