Deadlock error in INSERT statement

前端 未结 4 1240
别跟我提以往
别跟我提以往 2021-02-12 22:29

We\'ve got a web-based application. There are time-bound database operations (INSERTs and UPDATEs) in the application which take more time to complete, hence this particular fl

4条回答
  •  广开言路
    2021-02-12 22:58

    Your problem, probably, is the insert command is trying to lock one or both index and the indexes is locked for the other tread.

    One common mistake is lock resources in different order on each thread. Check the orders and try to lock the resources in the same order in all threads.

提交回复
热议问题