[MarkLogic Dev General] session.insertContent
vsxdmp:document-insert
Lee, David
dlee at epocrates.com
Wed May 20 10:38:01 PDT 2009
The other issue is "where is the source content".
If the ML server is on a machine which does not have local file access
to the source content, then the ONLY way to get it there is with
session.insertContent()
which reads from the client machine.
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Danny
Sokolsky
Sent: Wednesday, May 20, 2009 1:37 PM
To: General Mark Logic Developer Discussion
Subject: RE: [MarkLogic Dev General] session.insertContent
vsxdmp:document-insert
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: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Runstein,
Robert E. (Contr) (IS)
Sent: Wednesday, May 20, 2009 8:01 AM
To: general at developer.marklogic.com
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090520/abad0f31/attachment.html
More information about the General
mailing list