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

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 28 个 INFORMATION_SCHEMA 表 / 28.4 INFORMATION_SCHEMA InnoDB 表 / 28.4.6 INFORMATION_SCHEMA INNODB_CMP 和 INNODB_CMP_RESET 表
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 71%

28.4.6 INFORMATION_SCHEMA INNODB_CMP 和 INNODB_CMP_RESET 表28.4.6 The INFORMATION_SCHEMA INNODB_CMP and INNODB_CMP_RESET Tables

INNODB_CMP 和 INNODB_CMP_RESET 表提供与 压缩 InnoDB 表相关操作的状态信息。The INNODB_CMP and INNODB_CMP_RESET tables provide status information on operations related to compressed InnoDB tables.

INNODB_CMP 和 INNODB_CMP_RESET 表具有以下列:The INNODB_CMP and INNODB_CMP_RESET tables have these columns:

  • PAGE_SIZE

    压缩页面的字节大小。The compressed page size in bytes.

  • COMPRESS_OPS

    B 树页面大小为 PAGE_SIZE 的压缩次数。每当创建空页面或未压缩修改日志的空间用完时,页面都会被压缩。The number of times a B-tree page of size PAGE_SIZE has been compressed. Pages are compressed whenever an empty page is created or the space for the uncompressed modification log runs out.

  • COMPRESS_OPS_OK

    B 树页面大小为 PAGE_SIZE 的成功压缩次数。此计数不应超过 COMPRESS_OPS。The number of times a B-tree page of size PAGE_SIZE has been successfully compressed. This count should never exceed COMPRESS_OPS.

  • COMPRESS_TIME

    尝试压缩大小为 PAGE_SIZE 的 B 树页面所用的总时间(秒)。The total time in seconds used for attempts to compress B-tree pages of size PAGE_SIZE.

  • UNCOMPRESS_OPS

    B 树页面大小为 PAGE_SIZE 的解压次数。每当压缩失败或在未存在于缓冲池中的未压缩页面首次访问时,B 树页面会被解压。The number of times a B-tree page of size PAGE_SIZE has been uncompressed. B-tree pages are uncompressed whenever compression fails or at first access when the uncompressed page does not exist in the buffer pool.

  • UNCOMPRESS_TIME

    解压大小为 PAGE_SIZE 的 B 树页面所用的总时间(秒)。The total time in seconds used for uncompressing B-tree pages of the size PAGE_SIZE.

示例Example

mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_CMP\G
*************************** 1. row ***************************
      page_size: 1024
   compress_ops: 0
compress_ops_ok: 0
  compress_time: 0
 uncompress_ops: 0
uncompress_time: 0
*************************** 2. row ***************************
      page_size: 2048
   compress_ops: 0
compress_ops_ok: 0
  compress_time: 0
 uncompress_ops: 0
uncompress_time: 0
*************************** 3. row ***************************
      page_size: 4096
   compress_ops: 0
compress_ops_ok: 0
  compress_time: 0
 uncompress_ops: 0
uncompress_time: 0
*************************** 4. row ***************************
      page_size: 8192
   compress_ops: 86955
compress_ops_ok: 81182
  compress_time: 27
 uncompress_ops: 26828
uncompress_time: 5
*************************** 5. row ***************************
      page_size: 16384
   compress_ops: 0
compress_ops_ok: 0
  compress_time: 0
 uncompress_ops: 0
uncompress_time: 0

注意事项Notes