if the code does not check the result of commit() it should use apply() since that runs in the background.