code model commit and transaction flushing