Hi Robert,

I am not a much of a Java guy, so others might be better to comment on this 
one, but I think the difference is that with session.insertContent, you are 
using Java to stream in the content to MarkLogic Server.  With 
xdmp:document-insert, you are using XQuery to create the content in memory to 
insert.  If you have a large amount of content on the client machine (where the 
XCC program is running) to load, then it makes sense to use insertContent.  I 
believe this is what the open source project RecordLoader does 
(http://developer.marklogic.com/code/#recordloader).

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Runstein, Robert 
E. (Contr) (IS)
Sent: Wednesday, May 20, 2009 8:01 AM
To: [email protected]
Subject: [MarkLogic Dev General] session.insertContent vs xdmp:document-insert


What is the difference between session.insertContent and xdmp:document-insert?  
When using xcc is there any advantage to using one over the other?  Thanks.

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

Reply via email to