文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

17.7.2 InnoDB 事务模型17.7.2 InnoDB Transaction Model

InnoDB 事务模型旨在将 多版本 数据库的最佳特性与传统的两段锁结合起来。InnoDB 在行级执行锁定,默认以类似 Oracle 的方式将查询作为非锁定的 一致性读取 运行。InnoDB 中的锁信息以节省空间的方式存储,因此不需要锁升级。通常,多个用户被允许锁定 InnoDB 表中的每一行,或任意随机子集的行,而不会导致 InnoDB 内存耗尽。The InnoDB transaction model aims 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.