TLog_Truncate

This sample demonstrates the use of log truncation. The application shows how to truncate unnecessary log entities during a single transaction logging session. It starts transaction logging then performs READ_WRITE transactions, resets the log periodically and makes a new database snapshot. This keeps a consistent pair of database snapshots and log files which contain the transactions performed since the last snapshot.

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:

 
    tlogtruncate
     

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

Related Topics Link IconRelated Topics