It would seem to me if the before_commit_from_insert command is used we should be operating on an object pre-commit, then committing it. So, that would be equivalent to operating on the object, making updates, the inserting the updated object through the INSERT command. That is not what is happening. The INSERT command is putting the object in the database and then an UPDATE command is issued with the updated content from the before_commit_from_insert command.
It would seem to me if the
before_commit_from_insertcommand is used we should be operating on an object pre-commit, then committing it. So, that would be equivalent to operating on the object, making updates, the inserting the updated object through the INSERT command. That is not what is happening. The INSERT command is putting the object in the database and then an UPDATE command is issued with the updated content from thebefore_commit_from_insertcommand.