On 15/12/11 11:15, Geert Josten wrote:
> About 1) I'm a bit confused. The example in the docs tell that you can
> fetch a doc directly after a xdmp:commit from an insert just before the
> commit. Something that is not possible without the commit. How is that
> possible when the commit is postponed till the end of the execution? Kind
> of temp working space only visible to that statement? And is it then true
> that after the commit, the doc is not searchable yet? As the indexing
> exceptions haven't occurred yet, so I assume it is not indexed either?

You can use a semi-colon (";") to separate multiple XQuery statements 
(main modules) in the same file. A subsequent statement will be able to 
see the updates performed in the previous statement - but a commit is 
not necessary for this.

When the statement ends, the updates are performed and _you_ can see the 
results of those updates. When a commit is performed, every other 
request in MarkLogic can see the results of your transaction's updates.

John

-- 
John Snelson, Senior Engineer                  http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to