Rechercher dans le manuel MySQL
22.1.7.5 Limits Associated with Database Objects in NDB Cluster
Some database objects such as tables and indexes have different
limitations when using the
NDBCLUSTER
storage engine:
Database and table names. When using the
NDB
storage engine, the maximum allowed length both for database names and for table names is 63 characters. A statement using a database name or table name longer than this limit fails with an appropriate error.Number of database objects. The maximum number of all
NDB
database objects in a single NDB Cluster—including databases, tables, and indexes—is limited to 20320.Attributes per table. The maximum number of attributes (that is, columns and indexes) that can belong to a given table is 512.
Attributes per key. The maximum number of attributes per key is 32.
Row size. The maximum permitted size of any one row is 14000 bytes. Each
BLOB
orTEXT
column contributes 256 + 8 = 264 bytes to this total.In addition, the maximum offset for a fixed-width column of an
NDB
table is 8188 bytes; attempting to create a table that violates this limitation fails with NDB error 851 Maximum offset for fixed-size columns exceeded. For memory-based columns, you can work around this limitation by using a variable-width column type such asVARCHAR
or defining the column asCOLUMN_FORMAT=DYNAMIC
; this does not work with columns stored on disk. For disk-based columns, you may be able to do so by reordering one or more of the table's disk-based columns such that the combined width of all but the disk-based column defined last in theCREATE TABLE
statement used to create the table does not exceed 8188 bytes, less any possible rounding performed for some data types such asCHAR
orVARCHAR
; otherwise it is necessary to use memory-based storage for one or more of the offending column or columns instead.BIT column storage per table. The maximum combined width for all
BIT
columns used in a givenNDB
table is 4096.FIXED column storage. NDB Cluster 8.0 supports a maximum of 128 TB per fragment of data in
FIXED
columns.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-mysql-cluster-limitations-database-objects.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
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.