update transaction_id only when there are changes