You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
We were inserting about 25M records in 25,000 record increments. It was taking 630s/batch - so our process was taking days. I then switched to a custom method that simply operates on the object prior to a standard commit and it was taking 21s/batch. So, it was a pretty stark difference.
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 thebefore_commit_from_insert
command.The text was updated successfully, but these errors were encountered: