MySQL-官方文档摘抄

发布时间:2020-08-09 16:37:44 作者:wangwenan6
来源:ITPUB博客 阅读:147

点击(此处)折叠或打开

  1. There are three phases to an index build.
  2. In the first phase, the clustered index is scanned, and index entries are generated and added to the sort buffer. When the sort buffer becomes full, entries are sorted and written out to a temporary intermediate file. This process is also known as a “run”.
  3. In the second phase, with one or more runs written to the temporary intermediate file, a merge sort is performed on all entries in the file.
  4. In the third and final phase, the sorted entries are inserted into the B-tree.


点击(此处)折叠或打开

  1. When running an online DDL operation, the thread that runs the ALTER TABLE statement applies an “online log” of DML operations that were run concurrently on the same table from other connection threads. When the DML operations are applied, it is possible to encounter a duplicate key entry error (ERROR 1062 (23000): Duplicate entry), even if the duplicate entry is only temporary and would be reverted by a later entry in the “online log”.This is similar to the idea of a foreign key constraint check in InnoDB in which constraints must hold during a transaction.



点击(此处)折叠或打开

  1. Semisynchronous Replication

  2. The slave acknowledges receipt of a transaction's events only after the events have been written to its relay log and flushed to disk. 

半同步只负责relaylog的落盘, 并不关心Slave是否真的有应用这些events, 所以Master的双1+半同步正常可以确认binlog到了Slave端, Slave在不出问题的情况下能做到最终一致性;



点击(此处)折叠或打开

  1. innodb_lock_wait_timeout applies to InnoDB row locks only. A MySQL table lock does not happen inside InnoDB and this timeout does not apply to waits for table locks.
  2. The lock wait timeout value does not apply to deadlocks when innodb_deadlock_detect is enabled (the default) because InnoDB detects deadlocks immediately and rolls back one of the deadlocked transactions. When innodb_deadlock_detect is disabled, InnoDB relies 

    on innodb_lock_wait_timeout for transaction rollback when a deadlock occurs. 

For example, metadata lock

推荐阅读:
  1. MongoDB官方文档学习(1)
  2. 如何查看Oracle官方文档

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

mysql- 官方 摘抄

上一篇:Python3 日历(Calendar)模块介绍

下一篇:使用AngularJS学习MVC的基础知识分享

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》