Table-level locks, row-level locks, page locks

Please indicate the source of the original reprint: http://agilestyle.iteye.com/blog/2369740

 

Table-level locks: low overhead and fast locking; no deadlock; large locking granularity, the highest probability of lock conflicts and the lowest concurrency.

Row-level locks: high overhead, slow locking; deadlocks; the smallest locking granularity, the lowest probability of lock conflicts, and the highest concurrency.

Page locks: Overhead and locking time are between table locks and row locks; deadlocks can occur; locking granularity is between table locks and row locks, and the degree of concurrency is average.

 

Reference

http://www.jb51.net/article/50047.htm

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326288005&siteId=291194637