Shanghai Tengke Education Dream Database Training Dry Goods Sharing Lock Processing

01

Lock query

Through the above statement, check whether there is transaction blocking.

02

Query blocking transaction and blocked transaction ID

After obtaining the blocking transaction ID, through the transaction log provided by Dameng database, find the specific SQL of the blocking transaction, and then further optimize it. You can also directly find the specific SQL statement blocking the transaction through the dynamic view:

Guess you like

Origin blog.csdn.net/qq_42726883/article/details/108441233