Yes, my wetware parser missed that. I've filed a bug on your behalf to cover this in the docs. Thanks for your help.
Justin On Oct 5, 2015, at 12:37 AM, Andreas Hubmer <[email protected]<mailto:[email protected]>> wrote: Thanks for your replies. It would be great if the MarkLogic documentation would indicate which operations are not transactional. @Justin: My code is a multi-statement transaction, hence the updates are visible after the ";" 2015-10-02 19:00 GMT+02:00 Wayne Feick <[email protected]<mailto:[email protected]>>: When you clear a forest in a database you're running against, the clear operation is run asynchronously. Your query of test.xml is running prior to the clear actually happening. Wayne. On 10/02/2015 08:35 AM, Andreas Hubmer wrote: Hello, I've found an issue with xdmp:forest-clear. xdmp:document-insert("test.xml", <root/>); xdmp:forest-clear(xdmp:database-forests(xdmp:database())); doc("test.xml") (: should be empty :) When executing the above multi statement transaction, I would expect an empty result. But instead <root/> is returned. When I execute doc("test.xml") manually some moments later, the expected empty result is returned. As a workaround I could use xdmp:document-delete(cts:uris()) but my assumption is that xdmp:forest-clear is much faster. Is that true? Is xdmp:forest-clear somehow asynchronous? Or is it maybe a visibility problem with deleted data? I run the code as admin user (just for testing). Regards, Andreas -- Andreas Hubmer IT Consultant EBCONT enterprise technologies GmbH Millennium Tower Handelskai 94-96 A-1200 Vienna Web: http://www.ebcont.com<http://www.ebcont.com/> OUR TEAM IS YOUR SUCCESS UID-Nr. ATU68135644 HG St.Pölten - FN 399978 d _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation [email protected]<mailto:[email protected]> Phone: +1 650 655 2378<tel:%2B1%20650%20655%202378> www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -- Andreas Hubmer IT Consultant EBCONT enterprise technologies GmbH Millennium Tower Handelskai 94-96 A-1200 Vienna Web: http://www.ebcont.com<http://www.ebcont.com/> OUR TEAM IS YOUR SUCCESS UID-Nr. ATU68135644 HG St.Pölten - FN 399978 d _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
