Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithUnless you NEED for all of the records to be considered one transaction, try setting your CommitThreshold to 1000.
The database server may be struggling with holding 360k records as one single transaction. Breaking it up into chunks with the CommitThreshold may help with the problem.
You may need to play with the value a bit to come up with the optimum results:
CommitThreshold=0 (all records/single transaction) can cause the problem you are seeing
CommitThreshold=1 (each record is a separate transaction) can make your updates very slow
I have found that a value between 1000 and 10,000 seems to work well.