07-Transactions_MVCC

This sample demonstrates transactions using the MVCC Transaction Manager. For each of the three isolation levels with MVCC, two threads are started to run in parallel. The first thread writes to table A and the second to table B. As they write the database records output is written also to a memory buffer which is unspooled afterwards to show the actual order of operations.

How to Run

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_mvcc
     

But it is more instructive to run it in your development environment debugger, stepping through the code.

Related Topics Link IconRelated Topics