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: