What is the index key size limit in MariaDB?

扶醉桌前 提交于 2019-12-20 04:21:17

问题


In MySQL "An index key for a single-column index can be up to 767 bytes. The same length limit applies to any index key prefix."

Reviewing and searching the MariaDB documentation I cannot find a reference to this, or a similar, limit.

What is this limit?
What is the link to the documentation page I didn't find?


回答1:


It is a bit hidden, but e.g.

https://mariadb.com/kb/en/mariadb/documentation/storage-engines/converting-tables-from-myisam-to-innodb/

says:

The maximum length of an INDEX is different between the Engines. [...] MyISAM allows 1000 bytes; InnoDB allows 767 bytes [...]

So the limit is engine specific, but the limits are not different between MySQL and MariaDB.

PS: if in doubt MySQL and MariaDB are still similar enough that anything that is not explicitly documented as being different is still the same



来源:https://stackoverflow.com/questions/22700395/what-is-the-index-key-size-limit-in-mariadb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!