Post
KO

InnoDB Limitations

https://mariadb.com/kb/en/library/innodb-limitations/

Limitations on Schema

InnoDB tables can have a maximum of 1,017 columns. This includes virtual generated columns.

InnoDB tables can have a maximum of 64 secondary indexes.

A multicolumn index on InnoDB can use a maximum of 16 columns. If you attempt to create a multicolumn index that uses more than 16 columns, MariaDB returns an Error 1070.

InnoDB 테이블은 최대 1,017 개의 열을 가질 수 있습니다. 여기에는 가상 생성 열이 포함됩니다.

InnoDB 테이블은 최대 64 개의 보조 인덱스를 가질 수 있습니다.

InnoDB의 다중 열 인덱스는 최대 16 개의 열을 사용할 수 있습니다. 16 개가 넘는 열을 사용하는 다중 열 인덱스를 만들려고하면 MariaDB가 오류 1070을 반환합니다.

column의 max size의 영향이 있다면 Column Type을 Varchar (utf-8) -> 3byte 에서 latic1로 변경하면 1byte로 줄어들 수 있다.

(하지만 케릭터 셋의 표현 문자개수가 줄어드는데 괜찮은지 잘 모르겠네)

Limitations on Size

With the exception of variable-length columns (that is, VARBINARY, VARCHAR, BLOB and TEXT), rows in InnoDB have a maximum length of roughly half the page size for 4KB, 8KB, 16KB and 32KB page sizes.

The maximum size for BLOB and TEXT columns is 4GB. This also applies to LONGBLOB and LONGTEXT.

MariaDB imposes a row-size limit of 65,535 bytes for the combined sizes of all columns. If the table contains BLOB or TEXT columns, these only count for 9 - 12 bytes in this calculation, given that their content is stored separately.

32-bit operating systems have a maximum file size limit of 2GB. When working with large tables using this architecture, configure InnoDB to use smaller data files.

The maximum size for the combined InnoDB log files is 512GB.

With tablespaces, the minimum size is 10MB, the maximum varies depending on the InnoDB Page Size.

가변 길이 열 (즉, VARBINARY, VARCHAR, BLOB 및 TEXT)을 제외하고 InnoDB의 행은 최대 4KB, 8KB, 16KB 및 32KB 페이지 크기의 절반 인 페이지 크기를 갖습니다.

BLOB 및 TEXT 열의 최대 크기는 4GB입니다. LONGBLOB 및 LONGTEXT에도 적용됩니다.

MariaDB는 모든 열의 결합 된 크기에 대해 행 크기 제한을 65,535 바이트로 제한합니다. 테이블에 BLOB 또는 TEXT 열이 포함 된 경우 해당 내용이 별도로 저장되는 경우이 계산에서 9-12 바이트 만 계산합니다.

32 비트 운영 체제의 최대 파일 크기 제한은 2GB입니다. 이 아키텍처를 사용하여 큰 테이블로 작업 할 때는 더 작은 데이터 파일을 사용하도록 InnoDB를 구성하십시오.

결합 된 InnoDB 로그 파일의 최대 크기는 512GB입니다.

테이블 스페이스에서 최소 크기는 10MB이며 최대 크기는 InnoDB 페이지 크기에 따라 다릅니다.

This article is licensed under CC BY 4.0 by the author.