Only commit if there are changed objects at the end of execution that are associated with a data source.