MySQL 8 InnoDB 分区 - 最大分区数

MySQL 8 InnoDB Partitioning - Maximum Number of Partitions

What is the maximum number of partitions for InnoDB storage engine in MySQL 8?

如果我没记错的话,它曾经是 1024,但那是在 MySQL 8.

之前

我想知道在MySQL8中是否有变化?

Documentation 没有提到 InnoDB 的任何限制,NDB 只有 8192。

https://dev.mysql.com/doc/refman/8.0/en/partitioning-limitations.html

Maximum number of partitions. The maximum possible number of partitions for a given table not using the NDB storage engine is 8192. This number includes subpartitions.

"Not using NDB storage engine"表示InnoDB,其他引擎。只是不是新开发银行。

P.S。令人惊奇的是,读者经常在写作中忽略 "not" 这个词。不要将此视为个人批评 - 很多人都这样做。