[MarkLogic Dev General] Renaming Documents - question on example
Geert.Josten at daidalos.nl
Mon Nov 9 04:48:38 PST 2009
> >> Even though I dont understand it I gave it a shot and ran
> this xquery
> >> on an existing document "build.xml" and get this
> >> exception:
> >> My *guess* is that the delete and insert are not
> co-existing happily.
> > My *guess* is that you rely on a particular evaluation order,
> > regarding their side effects ;-)
> As far as I know, items in a sequence are are evaluated in
> that order... It would be good to have that confirmed though.
It is more complex than this. It does not concern evaluation order, but the fact that MarkLogic Server does not allow conflicting updates (where a delete is considered an update as well) within a single transaction.
To note: MarkLogic Server uses temporal databases and evaluation. As I understood all read operations within a transaction read against the database state of the beginning of the transaction. (It is explained in more detail in chapter 2 of the dev guide). That is why you can never read the document you inserted in the same transactions. I am aware of only a few exceptions to this, which concerns triggers..
Drs. G.P.H. Josten
Source of Innovation
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
More information about the General