Use “after_commit” and “after_rollback” instead or “after_save” if you want to do some operations that are not part of DB transaction This is useful because doing a lot of work inside a transaction will lead to slowdown on DB queries and maybe can lead to deadlock because the DB will lock all rows until operation is done











