lpts007
2020-12-25 12:02:05 +08:00
In the InnoDB transaction model, the goal is to combine the best properties of a multi-versioning database with traditional two-phase locking. InnoDB performs locking at the row level and runs queries as nonlocking consistent reads by default, in the style of Oracle. The lock information in InnoDB is stored space-efficiently so that lock escalation is not needed. Typically, several users are permitted to lock every row in InnoDB tables, or any random subset of the rows, without causing InnoDB memory exhaustion.
->The lock information in InnoDB is stored space-efficiently so that lock escalation is not needed.
-> space-efficiently
大致意思就是行锁开销为 0,n 个行锁开销为 0 * n = 0,这种意思吧。
黑箱知识适度打开,打开多了容易碰见黑洞,耗尽精力也没啥用。很多中文资料看一看就算了,别纠结。