Reputation: 233
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?
Upvotes: 3
Views: 8344
Reputation: 2765
It is a bit hidden, but e.g.
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
Upvotes: 3