Lock issues are one of the common causes of performance issues, and the impact can be severe. In the worst cases, queries can fail, and connections pile up so no new connections can be made. Therefore, it is important to know how to investigate lock issues and remediate the problems.
Flush locks
Metadata and schema locks
Record-level locks including gap locks
Deadlocks
Foreign keys
Semaphores