Robert,

Why wouldn't your example be an atomic statement?

The transaction model might be clearer after a review of chapter 3 in the developer guide: "Understanding Transactions in MarkLogic Server"

  http://developer.marklogic.com/pubs/

You may find the section titled "Example: Incrementing the System Timestamp" especially illuminating.

-- Mike

On 2009-05-20 08:16, Runstein, Robert E. (Contr) (IS) wrote:
I want to insert a new document with some custom properties using xcc.  The 
xdmp:document-add-properties function requires the document to exist in the 
database and I want the insert and add of the properties to be atomic.  While I 
could probably do something like

xdmp:document-insert($document, $documentUri), 
xdmp:document-add-properties($documentUri, $properties)

I'm wondering if there is a way to do this with a single call to to the 
database.  Thanks.

Bob


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

Reply via email to