I have JavaScript program containing two transactions:
T1 -> generate new documents within the database (update statement)
T2 -> transform existing MarkLogic documents
The successful execution of this program requires both transactions either succeed or rollback.
I wish to control the execution such that I can see the in-memory new documents but later rollback after T1 testing. If I am fully satisfied with T1, proceed T2.
In RDBMS (Oracle), I have the leverage to manipulate, view and rollback such changes (akin to taking a snapshot, when action is completed, snapshot is discarded).
How can I gain such control in MarkLogic?