This sample performs basic transaction start and commit. The application simply demonstrates the use of functions
mco_trans_start()
andmco_trans_commit()
withREAD_ONLY
andREAD_WRITE
transactions, and the functionmco_trans_checkpoint()
to cause indexes to be updated during a transaction.
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bin
directory:07_transactions_transactionBut it is more instructive to run it in your development environment debugger, stepping through the code.