> >> 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.. Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 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. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
