Rechercher dans le manuel MySQL

25.39.5 The INFORMATION_SCHEMA INNODB_CMP and INNODB_CMP_RESET Tables

The INNODB_CMP and INNODB_CMP_RESET tables provide status information on operations related to compressed InnoDB tables.

The INNODB_CMP and INNODB_CMP_RESET tables have these columns:

  • PAGE_SIZE

    The compressed page size in bytes.

  • COMPRESS_OPS

    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

    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

    The total time in seconds used for attempts to compress B-tree pages of size PAGE_SIZE.

  • UNCOMPRESS_OPS

    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

    The total time in seconds used for uncompressing B-tree pages of the size PAGE_SIZE.

Example

  1. mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_CMP\G
  2. *************************** 1. row ***************************
  3.       page_size: 1024
  4.    compress_ops: 0
  5. compress_ops_ok: 0
  6.   compress_time: 0
  7.  uncompress_ops: 0
  8. uncompress_time: 0
  9. *************************** 2. row ***************************
  10.       page_size: 2048
  11.    compress_ops: 0
  12. compress_ops_ok: 0
  13.   compress_time: 0
  14.  uncompress_ops: 0
  15. uncompress_time: 0
  16. *************************** 3. row ***************************
  17.       page_size: 4096
  18.    compress_ops: 0
  19. compress_ops_ok: 0
  20.   compress_time: 0
  21.  uncompress_ops: 0
  22. uncompress_time: 0
  23. *************************** 4. row ***************************
  24.       page_size: 8192
  25.    compress_ops: 86955
  26. compress_ops_ok: 81182
  27.   compress_time: 27
  28.  uncompress_ops: 26828
  29. uncompress_time: 5
  30. *************************** 5. row ***************************
  31.       page_size: 16384
  32.    compress_ops: 0
  33. compress_ops_ok: 0
  34.   compress_time: 0
  35.  uncompress_ops: 0
  36. uncompress_time: 0

Contents Haut

Notes


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-innodb-cmp-table.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut