-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Deadlock Issues while doing Bulk insert #46
Comments
That's a tricky issue, and the problem is in the SqlBulkCopy itself. According to How to increase performance of SqlBulkCopy --
-- Also in previous link and these: If you want to dig further: More info: |
I am thinking apply the object locking solution that you mentioned . Do you think object locking could cause another issues ? @borisdj |
Old thread but relevant to me now @borisdj I have a solution that processes concurrent service bus messages in parallel through function apps resulting in the database getting hammered and an occasional deadlock. Setting |
HOLDLOCK means SERIALIZABLE isolation level, which locks the table, but can have negative effect on concurrency and also on performance. Also there is config UseOptionLoopJoin - description in the ReadMe. |
We are using the bulk insert package and in regular tests, the inserts go through fine but in load tests where multiple web jobs are trying to do bulk inserts, we are getting deadlocks. Any pointers or settings that you can tell us how to solve the issue
The text was updated successfully, but these errors were encountered: