MySQL · 引擎特性 · InnoDB 崩溃恢复过程 enum { SRV_FORCE_IGNORE_CORRUPT = 1, /*!< let the server run even if it detects a corrupt page */ SRV_FORCE_NO_BACKGROUND = 2, /*!< prevent the main thread from running: if a crash would occur in purge, this prevents it…
insert buffer 是InnoDB存储引擎所独有的功能.通过insert buffer,InnoDB存储引擎可以大幅度提高数据库中非唯一辅助索引的插入性能. 数据库对于自增主键值的插入是顺序的,因此插入能有较高的性能.但是实际生产环境中,用户表中主键仅有并且只能有1个,然而表中可能存在多个辅助索引. 为了阐述非聚集索引写性能问题,我们先来看一个例子: mysql>create table t ( id int auto_increment, nam…