Skip to content

Commit

Permalink
Gap lock 与NEXT-KEY Lock不是一回事,NEXT-KEY Lock = NEXT-KEY Lock + Record Lock
Browse files Browse the repository at this point in the history
  • Loading branch information
tylitianrui committed Jul 9, 2019
1 parent a2220c0 commit 52aa511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/MySQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ SELECT * FROM post WHERE post.id IN (123,456,567,9098,8904);

MySQL 默认的事务型存储引擎只有在需要它不支持的特性时才考虑使用其它存储引擎

实现了四个标准的隔离级别默认级别是可重复读REPEATABLE READ)。在可重复读隔离级别下通过多版本并发控制MVCC)+ 间隙锁Next-Key Locking防止幻影读
实现了四个标准的隔离级别默认级别是可重复读REPEATABLE READ)。在可重复读隔离级别下通过多版本并发控制MVCC)+ Next-Key Locking 防止幻影读

主索引是聚簇索引在索引中保存了数据从而避免直接读取磁盘因此对查询性能有很大的提升

Expand Down

0 comments on commit 52aa511

Please sign in to comment.