Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 43.3Mb
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.2Kb
Man Pages (Zip) - 402.4Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  / ...  / MySQL NDB Cluster 8.0  / Management of NDB Cluster  / NDB Cluster Disk Data Tables  /  NDB Cluster Disk Data Storage Requirements

25.6.11.2 NDB Cluster Disk Data Storage Requirements

The following items apply to Disk Data storage requirements:

  • Variable-length columns of Disk Data tables take up a fixed amount of space. For each row, this is equal to the space required to store the largest possible value for that column.

    For general information about calculating these values, seeSection 13.7, “Data Type Storage Requirements”.

    You can obtain an estimate the amount of space available in data files and undo log files by querying the Information SchemaFILES table. For more information and examples, seeSection 28.3.15, “The INFORMATION_SCHEMA FILES Table”.

    Note

    TheOPTIMIZE TABLE statement does not have any effect on Disk Data tables.

  • In a Disk Data table, the first 256 bytes of aTEXT orBLOB column are stored in memory; only the remainder is stored on disk.

  • Each row in a Disk Data table uses 8 bytes in memory to point to the data stored on disk. This means that, in some cases, converting an in-memory column to the disk-based format can actually result in greater memory usage. For example, converting aCHAR(4) column from memory-based to disk-based format increases the amount ofDataMemory used per row from 4 to 8 bytes.

Important

Starting the cluster with the--initial option doesnot remove Disk Data files. You must remove these manually prior to performing an initial restart of the cluster.

Performance of Disk Data tables can be improved by minimizing the number of disk seeks by making sure thatDiskPageBufferMemory is of sufficient size. You can query thediskpagebuffer table to help determine whether the value for this parameter needs to be increased.